[笔记]--Rails遇到的问题及解决办法

一、执行rspec提示的错误

如执行:

rspec spec/requests/authentication_pages_spec.rb -e "signin with invalid information"

提示:

DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from get at /home/johnlu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/forwardable.rb:171)

解决办法:

config/application.rb中加入

config.secret_key_base = 'blipblapblup'

来源:https://github.com/rails-api/rails-api/issues/72

posted on 2013-08-01 21:05  Wilask  阅读(315)  评论(0编辑  收藏  举报

导航