mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
typo change
In Adding More RESTful Actions, Adding Member Routes: I believe the word 'that' should be added to the sentence, 'Within the block of member routes, each route name specifies the HTTP verb will be recognized.' This results in 'Within the block of member routes, each route name specifies the HTTP verb that will be recognized.'
This commit is contained in:
parent
9c5135ce6a
commit
9cfdf2b19f
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ 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 `preview_photo_url` and `preview_photo_path` helpers.
|
||||||
|
|
||||||
Within the block of member routes, each route name specifies the HTTP verb
|
Within the block of member routes, each route name specifies the HTTP verb that
|
||||||
will be recognized. You can use `get`, `patch`, `put`, `post`, or `delete` here
|
will be recognized. You can use `get`, `patch`, `put`, `post`, or `delete` here
|
||||||
. If you don't have multiple `member` routes, you can also pass `:on` to a
|
. If you don't have multiple `member` routes, you can also pass `:on` to a
|
||||||
route, eliminating the block:
|
route, eliminating the block:
|
||||||
|
|
Loading…
Reference in a new issue