From 4906d9029ecdf035550ff15154b5e3035ea056e4 Mon Sep 17 00:00:00 2001 From: Noah Horton Date: Thu, 12 Jan 2017 15:22:44 -0700 Subject: 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. --- 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 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 -- cgit v1.2.3