aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/routing.textile
diff options
context:
space:
mode:
authorBrian Alexander <balexand@gmail.com>2010-11-21 19:54:05 -0800
committerBrian Alexander <balexand@gmail.com>2010-11-21 19:54:05 -0800
commit51007f1dbafe029ed85b2a296736a00e6b24ec58 (patch)
treecc51abfcd47cc93dcc2dca3a77824b77257adcf5 /railties/guides/source/routing.textile
parent6af08ab6d835d1c2aa8648a0d3a4a86e678c3f52 (diff)
downloadrails-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/source/routing.textile')
-rw-r--r--railties/guides/source/routing.textile2
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+: