Define a route that only recognizes HTTP OPTIONS. For supported arguments, see match
options 'carrots', to: 'food#carrots'
727 728 729
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 727 def options(*args, &block) map_method(:options, args, &block) end