0

将应用程序从 2.3 升级到 3.0,现在得到了这些。解决此问题的最佳选择是什么,以便最终将其删除时我不会遇到问题。?

DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from <top (required)> at /home/durrantm/Dropnot/webs/rails_v3/linker/config/initializers/cookie_verification_secret.rb:7)

我应该设置什么值secret_token
我在代码中的哪个位置设置它?

4

1 回答 1

0

修复是改变:

config/initializers/cookie_verification_secret.rb

改变:

ActionController::Base.cookie_verifier_secret=

ActionController::Base.config.secret_token=
于 2012-06-28T12:24:41.447 回答