Browse files

Previous version inaccurately suggested that

resources :posts, :path => "/admin"

would route "/admin/posts" to the PostsController but it actually routed "/admin" to the PostsController
  • Loading branch information...
1 parent 6af08ab commit 51007f1dbafe029ed85b2a296736a00e6b24ec58 @balexand balexand committed Nov 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/routing.textile
@@ -194,7 +194,7 @@ end
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 +PostsController+:

0 comments on commit 51007f1

Please sign in to comment.