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:
parent
6af08ab6d8
commit
51007f1dba
1 changed files with 1 additions and 1 deletions
|
@ -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+:
|
||||
|
|
Loading…
Reference in a new issue