aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2014-02-11 10:34:00 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2014-02-11 10:34:00 -0500
commitb12c1b858ea8a781d221e94e2fc22bf729fe2086 (patch)
treebe5676dfa6ea650f232833c638f4d970c0d7b9b2
parent4b11dcca74da2852249bc156e29af55bf11926ad (diff)
parent3a0cc5c059b49452057359cab6017f98d93dd916 (diff)
downloadrails-b12c1b858ea8a781d221e94e2fc22bf729fe2086.tar.gz
rails-b12c1b858ea8a781d221e94e2fc22bf729fe2086.tar.bz2
rails-b12c1b858ea8a781d221e94e2fc22bf729fe2086.zip
Merge pull request #14015 from acapilleri/add_patch
add patch in HTTP Verb Constraints [ci skip]
-rw-r--r--guides/source/routing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index 70d4722068..9c495bf09d 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -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]