Friday, February 25, 2011

ActionController::InvalidAuthenticityToken

There are two types of answers on the web: wrong and correct.

Copying the correct answer here:

you need to add <%= token_tag %> into your form to make this.

Do not comment out the code that throws out the error - it exists for a very good reason: Cross-Site Request Forgery protection.

No comments: