我对ruby on rails很新,我遇到了为我的"计划"创建一个新控制器的问题。资源:
rails generate controller plans
/Users/RentaroSatomi/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.8.0/lib/bundler/runtime.rb:34:in
'block in setup': You have already activated spring 1.3.3,
but your Gemfile requires spring 1.3.1.
Prepending 'bundle exec' to your command may solve this. (Gem::LoadError)
错误说明错误的弹簧版本,但我真的不知道如何解决这个问题。
*编辑:已解决:This post solved my problem
答案 0 :(得分:1)
尝试仅更新您的Spring gem。在你的控制台中:
bundle update spring