Skip to content

Commit

Permalink
Add named helper to photo controller example
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Dec 11, 2010
1 parent e4c252c commit 93af9ec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions railties/guides/source/routing.textile
Expand Up @@ -611,14 +611,14 @@ resources :photos, :controller => "images"


will recognize incoming paths beginning with +/photos+ but route to the +Images+ controller: will recognize incoming paths beginning with +/photos+ but route to the +Images+ controller:


|_. Verb |_.Path |_.action | |_. Verb |_.Path |_.action |_.named helper |
|GET |/photos |index | |GET |/photos |index | photos_path |
|GET |/photos/new |new | |GET |/photos/new |new | new_photo_path |
|POST |/photos |create | |POST |/photos |create | photos_path |
|GET |/photos/1 |show | |GET |/photos/1 |show | photo_path |
|GET |/photos/1/edit |edit | |GET |/photos/1/edit |edit | edit_photo_path |
|PUT |/photos/1 |update | |PUT |/photos/1 |update | photo_path |
|DELETE |/photos/1 |destroy | |DELETE |/photos/1 |destroy | photo_path |


NOTE: Use +photos_path+, +new_photos_path+, etc. to generate paths for this resource. NOTE: Use +photos_path+, +new_photos_path+, etc. to generate paths for this resource.


Expand Down

0 comments on commit 93af9ec

Please sign in to comment.