Merge pull request #27662 from nhorton/patch-1
Fixing "Adding Member Routes" documentation
This commit is contained in:
commit
9914964514
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user