简体   繁体   English

Devise升级后报错

[英]Devise error after upgrading

I just upgrade to devise 1.2 and now on production I get the following error:我刚刚升级到 devise 1.2,现在在生产中出现以下错误:

2011-05-27T02:43:26+00:00 app[web.2]: RuntimeError (Devise changed how it stores objects in session. If you are seeing this message, you can fix it by changing one character in your cookie secret or cleaning up your database sessions if you are using a db store.):
2011-05-27T02:43:26+00:00 app[web.2]:   config/routes.rb:158
2011-05-27T02:43:26+00:00 app[web.2]:   lib/rack/www.rb:7:in `call'

How do I resolve this?我该如何解决这个问题? Thansk坦斯克

You can resolve it by doing what it says.你可以按照它说的来解决它。

You can fix this error by changing one character in your cookie secret or cleaning up your database sessions if you are using a db store for your sessions.如果您为会话使用数据库存储,则可以通过更改 cookie 密码中的一个字符或清理数据库会话来修复此错误。

To change your cookie secret change the secret_token in your rails config file.要更改您的 cookie 密码,请更改您的 rails 配置文件中的 secret_token。 For more information on sessions and security in rails see this link .有关 rails 中的会话和安全性的更多信息,请参阅此链接

If you need any help with this feel free to ask me.如果您需要任何帮助,请随时问我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM