aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.md
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2017-07-17 11:42:27 -0400
committerGitHub <noreply@github.com>2017-07-17 11:42:27 -0400
commit9914964514fc43f6eadba06a47fccdf95b7806f7 (patch)
treee6ab799a31f4f6647ac3cea7cd6af1ea62d972bd /guides/source/routing.md
parent1519e976b224871c7f7dd476351930d5d0d7faf6 (diff)
parent4906d9029ecdf035550ff15154b5e3035ea056e4 (diff)
downloadrails-9914964514fc43f6eadba06a47fccdf95b7806f7.tar.gz
rails-9914964514fc43f6eadba06a47fccdf95b7806f7.tar.bz2
rails-9914964514fc43f6eadba06a47fccdf95b7806f7.zip
Merge pull request #27662 from nhorton/patch-1
Fixing "Adding Member Routes" documentation
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r--guides/source/routing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index f7dbbc510e..0d45d6c554 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -484,7 +484,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