Method: ActionDispatch::Routing::Mapper::HttpHelpers#post

Defined in:
actionpack/lib/action_dispatch/routing/mapper.rb

#post(*args, &block) ⇒ Object

Define a route that only recognizes HTTP POST. For supported arguments, see match

post 'bacon', to: 'food#bacon'


695
696
697
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 695

def post(*args, &block)
  map_method(:post, args, &block)
end