Background Details
I am using Devise for authentication to login to a Rails 5 application.
Whenever I bundle either the Audited or Paper Trail gem, when I attempt to #create a new session (via the sign in form - /users/sign_in), I receive the following error:
ActionController::InvalidAuthenticityToken
Environment Details
Ruby 2.3.1
Gems:
- rails 5.0.2
- devise => 4.2.1
- paper_trail => 7.0.1
Steps to Reproduce:
- Create Rails 5 application
- Add Devise gem
- Add Audited or Paper Trail gem
- Attempt to login
protect_from_forgery with: :exception
in application_controller? – whodini9protect_from_forgery prepend: true
And then things were happy. Thanks for the help. – aldefouw