After the user has logged in and their username has been authenticated and saved in the [: username] session, when submitting the form with the = = post method (using standard html), all session data is cleared and the user is redirected back to the login page This does not happen if the method is set to receive.
Post works when I use the "form_tag" rails that generate these extra lines:
<div style="margin: 0pt; padding: 0pt; display: inline;"> <input type="hidden" value="✓" name="utf8"> <input type="hidden" value="a_bunch_of_gibberish" name="authenticity_token"> </div>
What's happening?
ruby-on-rails ruby-on-rails-3 session
Lee quarella
source share