Rails: ActionController::InvalidAuthenticityToken appears when changing to active_record_store

StackOverflow https://stackoverflow.com/questions/4784145

سؤال

I just changed my session_store to active_record_store. I did the rake command for db:sessions:create and db:migration, but now I get the following issue, as soon as I try to log in.

ActionController::InvalidAuthenticityToken

How to solve this issue?

Markus

هل كانت مفيدة؟

المحلول 2

That was a rather stupid one, but you have to know it...

I had to restart not only the server but also my browser to have the new authenticity token!

Now it works perfectly...

نصائح أخرى

Any changes in the configuration of a rails app requires restarting the server to see the changes.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top