Skip to content

Commit

Permalink
Fix error in routing guide edit_photo_path needs the id as param
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Oct 9, 2010
1 parent 6286629 commit afd76d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/routing.textile
Expand Up @@ -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.
Expand Down

0 comments on commit afd76d7

Please sign in to comment.