diff options
author | Brian Alexander <balexand@gmail.com> | 2010-11-21 19:54:05 -0800 |
---|---|---|
committer | Brian Alexander <balexand@gmail.com> | 2010-11-21 19:54:05 -0800 |
commit | 51007f1dbafe029ed85b2a296736a00e6b24ec58 (patch) | |
tree | cc51abfcd47cc93dcc2dca3a77824b77257adcf5 /railties/guides | |
parent | 6af08ab6d835d1c2aa8648a0d3a4a86e678c3f52 (diff) | |
download | rails-51007f1dbafe029ed85b2a296736a00e6b24ec58.tar.gz rails-51007f1dbafe029ed85b2a296736a00e6b24ec58.tar.bz2 rails-51007f1dbafe029ed85b2a296736a00e6b24ec58.zip |
Previous version inaccurately suggested that
resources :posts, :path => "/admin"
would route "/admin/posts" to the PostsController but it actually routed "/admin" to the PostsController
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/routing.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index 918279f9eb..2f5c88b8c3 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -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+: |