1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Previous version inaccurately suggested that

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

would route "/admin/posts" to the PostsController but it actually routed "/admin" to the PostsController
This commit is contained in:
Brian Alexander 2010-11-21 19:54:05 -08:00
parent 6af08ab6d8
commit 51007f1dba

View file

@ -194,7 +194,7 @@ end
or, for a single case
<ruby>
resources :posts, :path => "/admin"
resources :posts, :path => "/admin/posts"
</ruby>
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+: