Rails:`rescue in apply':使用rvm gem 1.11.3.5或更新版本。 (RuntimeError)

时间:2012-08-14 02:54:02

标签: ruby-on-rails rvm

我正在尝试使用one of the RailsApps tutorials中的应用程序模板。我收到了RuntimeError

...  
extras  creating RVM gemset 'myApp'
     run    rvm rvmrc trust from "."
Marked /Users/dB/railsApp/myApp/Gemfile as trusted
  extras  switching to gemset 'myApp'
https://raw.github.com/RailsApps/rails3-application-templates/master/rails3-devise-rspec-cucumber-template.rb:1096:in `rescue in apply': Use rvm gem 1.11.3.5 or newer. (RuntimeError)

我很困惑,因为我使用rvm版本1.14.2,>比他们似乎要求的版本(1.11.3.5)。

有谁知道我做错了什么?

2 个答案:

答案 0 :(得分:1)

rvm lib代码被提取到版本1.11.3的gem,从那以后只应用了错误修正,因此除了显示更新的第四个数字之外没有完成版本修改。

rvm在安装新ruby期间为您安装了gem,因为rvm gem包含在global.gems文件中。

答案 1 :(得分:0)

好的,我想我已经明白了。我使用的是旧版本的Ruby。我已经下载了最新版本,但我忘了在RVM中将其设置为最新版本。一旦我将新版本设为最新版本,此错误就会消失。