secret_token:问题

secret_token:问题

A secret is required to generate an integrity hash for cookie session data. Use config.secret_token = “some secret phrase of at least 30 characters”in config/initializers/secret_token.rb

解决方法:

运行 rake secret 生成secret_token,创建config/initializers/secret_token.rb,添加代码

YouApp::Application.config.secret_token = '用 rake secret 生成的token'