aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorcoreyhaines <coreyhaines@gmail.com>2012-03-06 20:46:47 -0600
committercoreyhaines <coreyhaines@gmail.com>2012-03-06 20:46:47 -0600
commitf434fa846ecd564e1bb6f82025a94c03c22eff59 (patch)
tree1dee6d6e8f487c60e67a988e23a0dadb433a9109 /railties/guides
parent4b89b90e93486d7ff99ccc429bc24c46adb0cb9f (diff)
downloadrails-f434fa846ecd564e1bb6f82025a94c03c22eff59.tar.gz
rails-f434fa846ecd564e1bb6f82025a94c03c22eff59.tar.bz2
rails-f434fa846ecd564e1bb6f82025a94c03c22eff59.zip
Left off a : when specifying the :namespace option for a :controller
path segment
Diffstat (limited to 'railties/guides')
-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 001b507c3b..1d4cb9f783 100644
--- a/railties/guides/source/routing.textile
+++ b/railties/guides/source/routing.textile
@@ -389,7 +389,7 @@ match ':controller/:action/:id/:user_id'
An incoming path of +/photos/show/1/2+ will be dispatched to the +show+ action of the +PhotosController+. +params[:id]+ will be +"1"+, and +params[:user_id]+ will be +"2"+.
-NOTE: You can't use +namespace+ or +:module+ with a +:controller+ path segment. If you need to do this then use a constraint on :controller that matches the namespace you require. e.g:
+NOTE: You can't use +:namespace+ or +:module+ with a +:controller+ path segment. If you need to do this then use a constraint on :controller that matches the namespace you require. e.g:
<ruby>
match ':controller(/:action(/:id))', :controller => /admin\/[^\/]+/