2015-02-23 30 views
0

當我做捆綁命令我得到以下:更新版本軌到4.0.3 4.2

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' 

我真的不明白那是怎麼回事。任何幫助將是偉大的!

謝謝。

回答

1

看起來您在升級導軌時還需要更新gem rails-dom-testing

bundle update rails rails-dom-testing 
+0

uhmm我得到「找不到gem'rails-dom-testing'。」 – gustavoca 2015-02-23 15:02:28