diff options
author | Noah Horton <noah@noahhorton.net> | 2017-01-12 15:22:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 15:22:44 -0700 |
commit | 4906d9029ecdf035550ff15154b5e3035ea056e4 (patch) | |
tree | 5f3dfe57a1a46e09d0a83bed8e2f932a14a22ced /guides/source | |
parent | 242d7e1e039dd36e9868f13824cb6770a9d01076 (diff) | |
download | rails-4906d9029ecdf035550ff15154b5e3035ea056e4.tar.gz rails-4906d9029ecdf035550ff15154b5e3035ea056e4.tar.bz2 rails-4906d9029ecdf035550ff15154b5e3035ea056e4.zip |
Fixing "Adding Member Routes" documentation
Previously said the helpers were preview_photo_url and preview_photo_path, i.e. action_resource, when in fact they are resource_action. i.e. photo_preview_path. Fixed.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/routing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md index 86492a9332..6c0518df60 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -491,7 +491,7 @@ resources :photos do end ``` -This will recognize `/photos/1/preview` with GET, and route to the `preview` action of `PhotosController`, with the resource id value passed in `params[:id]`. It will also create the `preview_photo_url` and `preview_photo_path` helpers. +This will recognize `/photos/1/preview` with GET, and route to the `preview` action of `PhotosController`, with the resource id value passed in `params[:id]`. It will also create the `photo_preview_url` and `photo_preview_path` helpers. Within the block of member routes, each route name specifies the HTTP verb will be recognized. You can use `get`, `patch`, `put`, `post`, or `delete` here |