Method: ActionDispatch::Routing::Mapper::HttpHelpers#put
- Defined in:
- actionpack/lib/action_dispatch/routing/mapper.rb
#put(*args, &block) ⇒ Object
Define a route that only recognizes HTTP PUT. For supported arguments, see [match](Base#match)
put 'bacon', to: 'food#bacon'
734 735 736 |
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 734 def put(*args, &block) map_method(:put, args, &block) end |