mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update the description of the :path option to #resources to reflect that it sets the actual path, not a prefix. Most instances were already fixed.
This commit is contained in:
parent
6df7a223ca
commit
9f9446f271
1 changed files with 2 additions and 2 deletions
|
@ -555,7 +555,7 @@ module ActionDispatch
|
|||
#
|
||||
# or, for a single case
|
||||
#
|
||||
# resources :posts, :path => "/admin"
|
||||
# resources :posts, :path => "/admin/posts"
|
||||
#
|
||||
# In each of these cases, the named routes remain the same as if you did
|
||||
# not use scope. In the last case, the following paths map to
|
||||
|
@ -1111,7 +1111,7 @@ module ActionDispatch
|
|||
# resources :posts, :module => "admin"
|
||||
#
|
||||
# # resource actions are at /admin/posts.
|
||||
# resources :posts, :path => "admin"
|
||||
# resources :posts, :path => "admin/posts"
|
||||
def resources(*resources, &block)
|
||||
options = resources.extract_options!
|
||||
|
||||
|
|
Loading…
Reference in a new issue