Skip to content

Add :authenticity_token in comments form #89

@arnaudoff

Description

@arnaudoff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions