glebm / rails_email_preview

Preview and edit app mailer templates in Rails.

Home Page:http://glebm.github.io/rails_email_preview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Send to action raises InvalidAuthenticityToken exception

dmitry opened this issue · comments

On the latest rails 5.2 once I click "send to" button I get the message: ActionController::InvalidAuthenticityToken.

authenticity_token field is being sent.

The reason is config.session_store :disabled.

Probably in this case I will need to do skip_before_action :verify_authenticity_token for RailsEmailPreview.EmailsController