aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.md
diff options
context:
space:
mode:
authorRyan Brooks <ryan@slatehorse.com>2018-08-03 12:36:27 +0100
committerRyan Brooks <ryan@slatehorse.com>2018-08-03 12:40:18 +0100
commit05bafa7401e6bfcbe8c013f9ec693f9bbf9cdeed (patch)
tree09c6223fb04531dd8426285068d6133bf7692548 /guides/source/routing.md
parent2088b10b1fcce969c7d03fe4b2297442f1d02174 (diff)
downloadrails-05bafa7401e6bfcbe8c013f9ec693f9bbf9cdeed.tar.gz
rails-05bafa7401e6bfcbe8c013f9ec693f9bbf9cdeed.tar.bz2
rails-05bafa7401e6bfcbe8c013f9ec693f9bbf9cdeed.zip
[ci skip] Update adding member routes guide to fix inconsistency with the implementation. Closes #33518
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 23a5538d9b..8c69e2600b 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -506,7 +506,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 `photo_preview_url` and `photo_preview_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 `preview_photo_url` and `preview_photo_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