aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-05-30 17:38:42 +0300
committerMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-05-30 17:47:24 +0300
commit68aafd6dd7424e28db5717c2f45476a65b136658 (patch)
tree5714972d2bec58b54d9d9aa2c4c577989bf3894b
parent534ca83ea56ec17e64cbdd57811b37b82c080c5d (diff)
downloadrails-68aafd6dd7424e28db5717c2f45476a65b136658.tar.gz
rails-68aafd6dd7424e28db5717c2f45476a65b136658.tar.bz2
rails-68aafd6dd7424e28db5717c2f45476a65b136658.zip
match method doc fix [ci skip]
match method without setting `:via` option has been deprecated fix minor typo
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index 00d3f03591..15980db39b 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1450,9 +1450,12 @@ module ActionDispatch
parent_resource.instance_of?(Resource) && @scope[:shallow]
end
- # match 'path' => 'controller#action'
- # match 'path', to: 'controller#action'
- # match 'path', 'otherpath', on: :member, via: :get
+ # Matches a url pattern to one or more routes.
+ # For more information, see match[rdoc-ref:Base#match].
+ #
+ # match 'path' => 'controller#action', via: patch
+ # match 'path', to: 'controller#action', via: :post
+ # match 'path', 'otherpath', on: :member, via: :get
def match(path, *rest)
if rest.empty? && Hash === path
options = path