Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix error in routing guide edit_photo_path needs the id as param

  • Loading branch information...
commit afd76d7fe9bb5e1b90a3b1c75abe45488e871f72 1 parent 6286629
@spastorino spastorino authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/guides/source/routing.textile
View
2  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.
Please sign in to comment.
Something went wrong with that request. Please try again.