1
0
Fork 0
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:
Jacob Poulsgaard Tjoernholm 2011-05-06 10:26:17 +02:00
parent 6df7a223ca
commit 9f9446f271

View file

@ -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!