当我执行捆绑命令时,我得到以下内容:
You have requested:
rails = 4.2.0
The bundle currently has rails locked at 4.0.3.
Try running `bundle update rails`
然后当我做“捆绑更新导轨”时:
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
rails (= 4.2.0) ruby depends on
activesupport (= 4.2.0) ruby
rails (= 4.2.0) ruby depends on
actionmailer (= 4.2.0) ruby depends on
rails-dom-testing (>= 1.0.5, ~> 1.0) ruby depends on
activesupport (4.2.0.beta1)
这是我的Gemfile:
source 'https://rubygems.org'
source 'https://rails-assets.org'
ruby '2.1.0'
gem 'rails', '4.2.0'
我真的不明白发生了什么。任何帮助都会很棒!
感谢。
答案 0 :(得分:1)
在升级rails时,您似乎还需要更新gem rails-dom-testing
。
bundle update rails rails-dom-testing