method
post
v4.2.7 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::HttpHelpers
post(*args, &block)public
Define a route that only recognizes HTTP POST. For supported arguments, see match[rdoc-ref:Base#match]
post 'bacon', to: 'food#bacon'