uninitialized constant ActionDispatch::Session::EncryptedCookieStore (NameError)

前端 未结 1 1458
囚心锁ツ
囚心锁ツ 2021-02-06 22:54

i\'m on rails 4 with passenger. everything was working great until i did a bundle just now. now i\'m hitting the following error:

Web application co         


        
1条回答
  •  情书的邮戳
    2021-02-06 23:06

    The secret cookie store was recently removed in Rails 4. See Changelog.

    In order to get your app working again, replace the line config.session_store :encrypted_cookie_store with config.session_store :cookie_store in config/initializers/session_store.rb. The store will be automatically encrypted.

    If unsure. Create a new Rails 4 app (rails new app_name --pre) and have a look at the initializers.

    For details see the according commit

    0 讨论(0)
提交回复
热议问题