instance method
post
Ruby on Rails 8.0.4
Since v3.0.20Signature
post(*args, &block)
Define a route that only recognizes HTTP POST. For supported arguments, see match
post 'bacon', to: 'food#bacon'
Parameters
-
argsrest -
blockblock
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 718
def post(*args, &block)
map_method(:post, args, &block)
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 718
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::HttpHelpers