diff options
author | coreyhaines <coreyhaines@gmail.com> | 2012-03-06 20:46:47 -0600 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-09 00:26:32 +0530 |
commit | df755d4e530c2e991261528793c9952a2d907343 (patch) | |
tree | 19666ede0b640689fb10fe5eed46406f662a6f42 | |
parent | 22a8433631744f4f2b1debbf210d2c1135c9e9d9 (diff) | |
download | rails-df755d4e530c2e991261528793c9952a2d907343.tar.gz rails-df755d4e530c2e991261528793c9952a2d907343.tar.bz2 rails-df755d4e530c2e991261528793c9952a2d907343.zip |
Left off a : when specifying the :namespace option for a :controller
path segment
-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 0823fb14e3..52a95b3f5f 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -385,7 +385,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\/[^\/]+/ |