提交 51007f1d 编写于 作者: B Brian Alexander

Previous version inaccurately suggested that

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

would route "/admin/posts" to the PostsController but it actually routed "/admin" to the PostsController
上级 6af08ab6
......@@ -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+:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册