2012-06-17 51 views
0

將應用程序從2.3升級到3.0,現在得到這些。 什麼是最好的選擇來解決這個問題,以便當它最終被刪除時,我不會有問題。紅寶石在鐵軌上 - 關於基地的棄用警告:: cookier_verifier_secret

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來?
哪裏在代碼shold我設置?

回答

0

修復是改變:

config/initializers/cookie_verification_secret.rb 

更改:

ActionController::Base.cookie_verifier_secret= 

ActionController::Base.config.secret_token=