Instance Public methods
delete(*args, &block) Link
Define a route that only recognizes HTTP DELETE. For supported arguments, see match
delete 'broccoli', to: 'food#broccoli'
Source: show
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 731 def delete(*args, &block) map_method(:delete, args, &block) end
get(*args, &block) Link
Define a route that only recognizes HTTP GET. For supported arguments, see match
get 'bacon', to: 'food#bacon'
Source: show
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 699 def get(*args, &block) map_method(:get, args, &block) end
options(*args, &block) Link
Define a route that only recognizes HTTP OPTIONS. For supported arguments, see match
options 'carrots', to: 'food#carrots'
Source: show
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 739 def options(*args, &block) map_method(:options, args, &block) end
patch(*args, &block) Link
Define a route that only recognizes HTTP PATCH. For supported arguments, see match
patch 'bacon', to: 'food#bacon'
Source: show
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 715 def patch(*args, &block) map_method(:patch, args, &block) end