module ActionDispatch::Routing::Mapper::HttpHelpers

def put(*args, &block)

put 'bacon', to: 'food#bacon'

For supported arguments, see match[rdoc-ref:Base#match]
Define a route that only recognizes HTTP PUT.
def put(*args, &block)
  map_method(:put, args, &block)
end