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