aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikac.hu>2018-08-03 14:24:20 +0100
committerGitHub <noreply@github.com>2018-08-03 14:24:20 +0100
commitf0e9a43c23b1a5c58a549ef76df1e03753cc4c90 (patch)
tree09c6223fb04531dd8426285068d6133bf7692548
parent2088b10b1fcce969c7d03fe4b2297442f1d02174 (diff)
parent05bafa7401e6bfcbe8c013f9ec693f9bbf9cdeed (diff)
downloadrails-f0e9a43c23b1a5c58a549ef76df1e03753cc4c90.tar.gz
rails-f0e9a43c23b1a5c58a549ef76df1e03753cc4c90.tar.bz2
rails-f0e9a43c23b1a5c58a549ef76df1e03753cc4c90.zip
Merge pull request #33524 from spikeheap/master
[Documentation] Fix "adding member routes" guide inconsistency
-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