blogit icon indicating copy to clipboard operation
blogit copied to clipboard

Add :authenticity_token in comments form

Open arnaudoff opened this issue 9 years ago • 0 comments

In Rails 4, in order for the AJAX comments to work, the form_for in app/views/blogit/comments/_form.html.erb needs authenticity_token: true as an option, otherwise posting a comment throws an exception for invalid CSRF token.

Not sure if that's a bug or it's documented/configurable somewhere.

arnaudoff avatar May 15 '16 21:05 arnaudoff