From 05bafa7401e6bfcbe8c013f9ec693f9bbf9cdeed Mon Sep 17 00:00:00 2001 From: Ryan Brooks Date: Fri, 3 Aug 2018 12:36:27 +0100 Subject: [ci skip] Update adding member routes guide to fix inconsistency with the implementation. Closes #33518 --- guides/source/routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') 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 -- cgit v1.2.3