method

post

rails latest stable - Class: ActionDispatch::Routing::Mapper::HttpHelpers

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

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'