diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-09 14:50:25 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-09 14:50:25 -0200 |
commit | afd76d7fe9bb5e1b90a3b1c75abe45488e871f72 (patch) | |
tree | f2d38b883fcf4763f7906a73c22a47e59d0c81ad /railties/guides | |
parent | 6286629acab6361ab7046e3ec61157c3b4dbca93 (diff) | |
download | rails-afd76d7fe9bb5e1b90a3b1c75abe45488e871f72.tar.gz rails-afd76d7fe9bb5e1b90a3b1c75abe45488e871f72.tar.bz2 rails-afd76d7fe9bb5e1b90a3b1c75abe45488e871f72.zip |
Fix error in routing guide edit_photo_path needs the id as param
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/routing.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index 7d4fb69d3b..a8a8ee58ec 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -91,7 +91,7 @@ Creating a resourceful route will also expose a number of helpers to the control * +photos_path+ returns +/photos+ * +new_photo_path+ returns +/photos/new+ -* +edit_photo_path+ returns +/photos/:id/edit+ +* +edit_photo_path(id)+ returns +/photos/:id/edit+ (for instance, +edit_photo_path(10)+ returns +/photos/10/edit+) * +photo_path(id)+ returns +/photos/:id+ (for instance, +photo_path(10)+ returns +/photos/10+) Each of these helpers has a corresponding +_url+ helper (such as +photos_url+) which returns the same path prefixed with the current host, port and path prefix. |