ActionController::InvalidAuthenticityToken: verified with authentication token on the form!

Posted by goodwill on Stack Overflow See other posts from Stack Overflow or by goodwill
Published on 2008-11-06T09:20:02Z Indexed on 2010/04/06 5:03 UTC
Read the original article Hit count: 236

I don't know why it happens but my form for some reason does not post properly. I am very sure the form contains the required authentication token:

<form action="/account/complete_verify_email/4df78710-e27b-4527-bd2d-71cd2e9a1271" method="post"><div style="margin:0;padding:0"><input name="authenticity_token" type="hidden" value="341b07dfa682ed11a045e19956e2e3f5f499e8cb"></div>
  <input id="password" name="password" type="password">
  <input name="commit" type="submit" value="Continue">
  </form>

Note the authenticity_token is there. What happened?

And YOU KNOW WHAT? Quitting Safari and restart again solved the issue... but I can't think of what kind of intermittent behaviour could cause such problem.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about invalidauthenticitytoken