Permalink
Browse files

Update the description of the :path option to #resources to reflect t…

…hat it sets the actual path, not a prefix. Most instances were already fixed.
  • Loading branch information...
1 parent 6df7a22 commit 9f9446f27110a0d55462edd76df55ab1a67414c6 @chopmo chopmo committed May 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -555,7 +555,7 @@ def map_method(method, *args, &block)
#
# 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 @@ def resource(*resources, &block)
# 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!

0 comments on commit 9f9446f

Please sign in to comment.