From 14ee31cdd09ef100cd2cb9eb9bd50c3a6d5e7f45 Mon Sep 17 00:00:00 2001 From: Cheah Chu Yeow Date: Fri, 20 Nov 2009 14:06:42 +0800 Subject: [PATCH] Indicate that the :method routing condition can also accept an array of HTTP methods. --- actionpack/lib/action_dispatch/routing.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb index 68ed1e3340..5063ab8072 100644 --- a/actionpack/lib/action_dispatch/routing.rb +++ b/actionpack/lib/action_dispatch/routing.rb @@ -193,9 +193,10 @@ module ActionDispatch # # With conditions you can define restrictions on routes. Currently the only valid condition is :method. # - # * :method - Allows you to specify which method can access the route. Possible values are :post, - # :get, :put, :delete and :any. The default value is :any, - # :any means that any method can access the route. + # * :method - Allows you to specify which HTTP method(s) can access the route. Possible values are + # :post, :get, :put, :delete and :any. Use an array to specify more + # than one method, e.g. [ :get, :post ]. The default value is :any, :any means that any + # method can access the route. # # Example: # -- GitLab