method

post_via_redirect

Importance_1
v2.2.1 - Show latest stable - 1 note - Class: ActionController::Integration::Session
post_via_redirect(path, parameters = nil, headers = nil) public

Performs a POST request, following any subsequent redirect. See request_via_redirect for more information.

Show source
Register or log in to add new notes.
December 5, 2012 - (v3.2.8)
1 thank

post user authentication info to sessions create action

post_via_redirect(“sessions”, {:user=>{:email=> user.email, :password => user.password}})