Skip to content

Commit

Permalink
add patch in HTTP Verb Constraints [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
acapilleri committed Feb 11, 2014
1 parent 4b11dcc commit 3a0cc5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ This will define a `user_path` method that will be available in controllers, hel

### HTTP Verb Constraints

In general, you should use the `get`, `post`, `put` and `delete` methods to constrain a route to a particular verb. You can use the `match` method with the `:via` option to match multiple verbs at once:
In general, you should use the `get`, `post`, `put`, `patch` and `delete` methods to constrain a route to a particular verb. You can use the `match` method with the `:via` option to match multiple verbs at once:

```ruby
match 'photos', to: 'photos#show', via: [:get, :post]
Expand Down

0 comments on commit 3a0cc5c

Please sign in to comment.