Skip to content

Commit

Permalink
Fix Mapper definition lists
Browse files Browse the repository at this point in the history
  • Loading branch information
skipkayhil committed Jul 22, 2024
1 parent e6ca80e commit a7ebf9b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions actionpack/lib/action_dispatch/routing/mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1405,14 +1405,14 @@ def resource(*resources, &block)
#
# resources :posts, path_names: { new: "brand_new" }
#
# The above example will now change /posts/new to /posts/brand_new.
# : The above example will now change /posts/new to /posts/brand_new.
#
# :path
# : Allows you to change the path prefix for the resource.
#
# resources :posts, path: 'postings'
#
# The resource and all segments will now route to /postings instead of
# : The resource and all segments will now route to /postings instead of
# /posts.
#
# :only
Expand All @@ -1435,14 +1435,14 @@ def resource(*resources, &block)
# resources :comments
# end
#
# Is the same as:
# : Is the same as:
#
# resources :posts do
# resources :comments, except: [:show, :edit, :update, :destroy]
# end
# resources :comments, only: [:show, :edit, :update, :destroy]
#
# This allows URLs for resources that otherwise would be deeply nested such
# : This allows URLs for resources that otherwise would be deeply nested such
# as a comment on a blog post like `/posts/a-long-permalink/comments/1234`
# to be shortened to just `/comments/1234`.
#
Expand All @@ -1458,7 +1458,7 @@ def resource(*resources, &block)
# end
# end
#
# The `comments` resource here will have the following routes generated for
# : The `comments` resource here will have the following routes generated for
# it:
#
# post_comments GET /posts/:post_id/comments(.:format)
Expand All @@ -1478,7 +1478,7 @@ def resource(*resources, &block)
# end
# end
#
# The `comments` resource here will have the following routes generated for
# : The `comments` resource here will have the following routes generated for
# it:
#
# post_comments GET /posts/:post_id/comments(.:format)
Expand All @@ -1499,7 +1499,7 @@ def resource(*resources, &block)
#
# ### Examples
#
# # routes call +Admin::PostsController+
# # routes call Admin::PostsController
# resources :posts, module: "admin"
#
# # resource actions are at /admin/posts.
Expand Down

0 comments on commit a7ebf9b

Please sign in to comment.