Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add :authenticity_token in comments form #89

Open
arnaudoff opened this issue May 15, 2016 · 0 comments
Open

Add :authenticity_token in comments form #89

arnaudoff opened this issue May 15, 2016 · 0 comments

Comments

@arnaudoff
Copy link

arnaudoff commented May 15, 2016

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 arnaudoff changed the title Add :authenticity_token Add :authenticity_token in comments form May 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant