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

为君一笑 提交于 2019-12-03 04:15:42
leifg

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!