aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJacob Poulsgaard Tjoernholm <chopmo@gmail.com>2011-05-06 10:26:17 +0200
committerJacob Poulsgaard Tjoernholm <chopmo@gmail.com>2011-05-06 10:26:17 +0200
commit9f9446f27110a0d55462edd76df55ab1a67414c6 (patch)
treefa96c4ea908ed553e6b43f384f601eeeab22374a /actionpack/lib
parent6df7a223caa7b68543595afcebb5700435bfb4ec (diff)
downloadrails-9f9446f27110a0d55462edd76df55ab1a67414c6.tar.gz
rails-9f9446f27110a0d55462edd76df55ab1a67414c6.tar.bz2
rails-9f9446f27110a0d55462edd76df55ab1a67414c6.zip
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.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index a65f6e1fce..ed050b7c6a 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -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!