From 9f9446f27110a0d55462edd76df55ab1a67414c6 Mon Sep 17 00:00:00 2001 From: Jacob Poulsgaard Tjoernholm Date: Fri, 6 May 2011 10:26:17 +0200 Subject: 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. --- actionpack/lib/action_dispatch/routing/mapper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack') 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! -- cgit v1.2.3