module ActionDispatch::Routing::Mapper::HttpHelpers

def post(*args, &block)

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

Example:

For supported arguments, see +match+.
Define a route that only recognizes HTTP POST.
def post(*args, &block)
  map_method(:post, *args, &block)
end