diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-09-18 05:57:09 -0500 |
---|---|---|
committer | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-09-18 05:57:09 -0500 |
commit | c2494a294851a7e93e5644159c6ee781a0ae1cd1 (patch) | |
tree | 2e4ddfc967a2be4b862438c1c415a5abf4cda339 /railties/doc/guides/routing | |
parent | bfe0cd379f3a7938e8b8ad97ef91612032bb8d60 (diff) | |
download | rails-c2494a294851a7e93e5644159c6ee781a0ae1cd1.tar.gz rails-c2494a294851a7e93e5644159c6ee781a0ae1cd1.tar.bz2 rails-c2494a294851a7e93e5644159c6ee781a0ae1cd1.zip |
Eradicate some stray colons.
Diffstat (limited to 'railties/doc/guides/routing')
-rw-r--r-- | railties/doc/guides/routing/routing_outside_in.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/doc/guides/routing/routing_outside_in.txt b/railties/doc/guides/routing/routing_outside_in.txt index 5d855005c9..185b4ab2cc 100644 --- a/railties/doc/guides/routing/routing_outside_in.txt +++ b/railties/doc/guides/routing/routing_outside_in.txt @@ -597,7 +597,7 @@ You can set up as many wildcard symbols within a regular route as you like. Anyt [source, ruby] ------------------------------------------------------- -map.connect ':controller/:action/:id/:user_id:' +map.connect ':controller/:action/:id/:user_id' ------------------------------------------------------- An incoming URL of +/photos/show/1/2+ will be dispatched to the +show+ action of the +Photos+ controller. +params[:id]+ will be set to 1, and +params[:user_id]+ will be set to 2. @@ -608,7 +608,7 @@ You can specify static text when creating a route. In this case, the static text [source, ruby] ------------------------------------------------------- -map.connect ':controller/:action/:id/with_user/:userid:' +map.connect ':controller/:action/:id/with_user/:user_id' ------------------------------------------------------- This route would respond to URLs such as +/photos/show/1/with_user/2+. |