diff options
-rw-r--r-- | railties/doc/guides/routing/routing_outside_in.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/doc/guides/routing/routing_outside_in.txt b/railties/doc/guides/routing/routing_outside_in.txt index d450bf89f7..2c1870d9d4 100644 --- a/railties/doc/guides/routing/routing_outside_in.txt +++ b/railties/doc/guides/routing/routing_outside_in.txt @@ -256,7 +256,7 @@ PUT /photos/1 Images update update a specific image DELETE /photos/1 Images destroy delete a specific image -------------------------------------------------------------------------------------------- -NOTE: The helpers will be generated with the name of the resource, not the name of the controller. So in this case, you'd still get +photos_path+, +photos_new_path+, and so on. +NOTE: The helpers will be generated with the name of the resource, not the name of the controller. So in this case, you'd still get +photos_path+, +new_photo_path+, and so on. === Controller Namespaces and Routing === @@ -321,7 +321,7 @@ PUT /images/1 Photos update update a specific photo DELETE /images/1 Photos destroy delete a specific photo -------------------------------------------------------------------------------------------- -NOTE: The helpers will be generated with the name of the resource, not the path name. So in this case, you'd still get +photos_path+, +photos_new_path+, and so on. +NOTE: The helpers will be generated with the name of the resource, not the path name. So in this case, you'd still get +photos_path+, +new_photo_path+, and so on. ==== Using :path_names @@ -376,7 +376,7 @@ map.resources :photos, :path_prefix => '/photographers/:photographer_id', :name_ map.resources :photos, :path_prefix => '/agencies/:agency_id', :name_prefix => 'agency_' ------------------------------------------------------- -This combination will give you route helpers such as +photographer_photos_path+ and +agency_photo_edit_path+ to use in your code. +This combination will give you route helpers such as +photographer_photos_path+ and +agency_edit_photo_path+ to use in your code. === Nested Resources |