instance method
post_via_redirect
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v4.2.9Signature
post_via_redirect(path, parameters = nil, headers = nil)
Performs a POST request, following any subsequent redirect. See request_via_redirect for more information.
Parameters
-
pathreq -
parametersopt = nil -
headersopt = nil
Source
# File actionpack/lib/action_dispatch/testing/integration.rb, line 101
def post_via_redirect(path, parameters = nil, headers = nil)
request_via_redirect(:post, path, parameters, headers)
end
Defined in actionpack/lib/action_dispatch/testing/integration.rb line 101
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Integration::RequestHelpers