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