aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-12-11 02:02:09 -0200
committerVijay Dev <vijaydev.cse@gmail.com>2010-12-16 01:49:28 +0530
commit4c5805dfabad7de5bc10c9e4a76c260d6e47ba92 (patch)
tree95356e511bb9debaf76057e7de64f7dc463b26f4 /railties/guides/source
parent6f8cc0776bfabac12208a5134c6feb26813754dc (diff)
downloadrails-4c5805dfabad7de5bc10c9e4a76c260d6e47ba92.tar.gz
rails-4c5805dfabad7de5bc10c9e4a76c260d6e47ba92.tar.bz2
rails-4c5805dfabad7de5bc10c9e4a76c260d6e47ba92.zip
Add named helper to photo controller example
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/routing.textile16
1 files changed, 8 insertions, 8 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile
index 759aa7bb90..9c1ed74804 100644
--- a/railties/guides/source/routing.textile
+++ b/railties/guides/source/routing.textile
@@ -611,14 +611,14 @@ resources :photos, :controller => "images"
will recognize incoming paths beginning with +/photos+ but route to the +Images+ controller:
-|_. Verb |_.Path |_.action |
-|GET |/photos |index |
-|GET |/photos/new |new |
-|POST |/photos |create |
-|GET |/photos/1 |show |
-|GET |/photos/1/edit |edit |
-|PUT |/photos/1 |update |
-|DELETE |/photos/1 |destroy |
+|_. Verb |_.Path |_.action |_.named helper |
+|GET |/photos |index | photos_path |
+|GET |/photos/new |new | new_photo_path |
+|POST |/photos |create | photos_path |
+|GET |/photos/1 |show | photo_path |
+|GET |/photos/1/edit |edit | edit_photo_path |
+|PUT |/photos/1 |update | photo_path |
+|DELETE |/photos/1 |destroy | photo_path |
NOTE: Use +photos_path+, +new_photos_path+, etc. to generate paths for this resource.