From c2494a294851a7e93e5644159c6ee781a0ae1cd1 Mon Sep 17 00:00:00 2001 From: Mike Gunderloy Date: Thu, 18 Sep 2008 05:57:09 -0500 Subject: Eradicate some stray colons. --- railties/doc/guides/routing/routing_outside_in.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/doc/guides/routing') 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+. -- cgit v1.2.3