protect_from_forgery with db-session (Rails 2.3.2)

Robin Wunderlin
Mon, 22 Jun 2009 13:53:10 -0000

I try to use db-session with protect_from_forgery.

But I always get a error msg:

ActionController::InvalidAuthenticityToken.

application_controller.rb
protect_from_forgery #:secret => ''top_secret''

session_store.rb
ActionController::Base.session_store = :active_record_store


hope you can help me.

Best regards