在 github 上 clone 了一个项目,准备学习,但是 rails s 时出现下面的错误:
ArgumentError (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
但是还是不太明白为什么出现这个错误