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