diff options
Diffstat (limited to 'railties/guides/source/routing.textile')
-rw-r--r-- | railties/guides/source/routing.textile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index d489568ef4..c26a5cd6ee 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -131,7 +131,7 @@ map.resources :photos creates seven different routes in your application: -|_.HTTP verb |_.URL |_.controller |_.action |_.used for| +|_.HTTP verb|_.URL |_.controller|_.action |_.used for| |GET |/photos |Photos |index |display a list of all photos| |GET |/photos/new |Photos |new |return an HTML form for creating a new photo| |POST |/photos |Photos |create |create a new photo| @@ -188,7 +188,7 @@ map.resource :geocoder creates six different routes in your application: -|_.HTTP verb |_.URL |_.controller |_.action |_.used for| +|_.HTTP verb|_.URL |_.controller|_.action |_.used for| |GET |/geocoder/new |Geocoders |new |return an HTML form for creating the new geocoder| |POST |/geocoder |Geocoders |create |create the new geocoder| |GET |/geocoder |Geocoders |show |display the one and only geocoder resource| @@ -231,7 +231,7 @@ map.resources :photos, :controller => "images" will recognize incoming URLs containing +photo+ but route the requests to the Images controller: -|_.HTTP verb |_.URL |_.controller |_.action |_.used for| +|_.HTTP verb|_.URL |_.controller|_.action |_.used for| |GET |/photos |Images |index |display a list of all images| |GET |/photos/new |Images |new |return an HTML form for creating a new image| |POST |/photos |Images |create |create a new image| @@ -304,7 +304,7 @@ map.resources :photos, :as => "images" will recognize incoming URLs containing +image+ but route the requests to the Photos controller: -|_.HTTP verb |_.URL |_.controller |_.action |_:used for| +|_.HTTP verb|_.URL |_.controller|_.action |_:used for| |GET |/images |Photos |index |display a list of all photos| |GET |/images/new |Photos |new |return an HTML form for creating a new photo| |POST |/images |Photos |create |create a new photo| @@ -420,7 +420,7 @@ TIP: Further below you'll learn about a convenient shortcut for this construct:< In addition to the routes for magazines, this declaration will also create routes for ads, each of which requires the specification of a magazine in the URL: -|_.HTTP verb |_.URL |_.controller |_.action |_.used for| +|_.HTTP verb|_.URL |_.controller|_.action |_.used for| |GET |/magazines/1/ads |Ads |index |display a list of all ads for a specific magazine| |GET |/magazines/1/ads/new |Ads |new |return an HTML form for creating a new ad belonging to a specific magazine| |POST |/magazines/1/ads |Ads |create |create a new ad belonging to a specific magazine| |