instance method
options
Ruby on Rails 8.0.4
Since v6.1.7.10Signature
options(*args, &block)
Define a route that only recognizes HTTP OPTIONS. For supported arguments, see match
options 'carrots', to: 'food#carrots'
Parameters
-
argsrest -
blockblock
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 750
def options(*args, &block)
map_method(:options, args, &block)
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 750
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::HttpHelpers