2011-10-16 85 views
3

我想安裝acts_as_commentable_with_threading。我已將「gem'acts_as_commentable_with_threading'」添加到我的Gemfile中。Bundler無法找到兼容版本的寶石「activerecord」

當我從命令行運行「捆綁安裝」時,我得到以下內容。

Fetching source index for http://rubygems.org/ 
Bundler could not find compatible versions for gem "activerecord": 
    In Gemfile: 
    acts_as_commentable_with_threading depends on 
     activerecord (~> 3.0.0) 

    rails (= 3.1.0) depends on 
     activerecord (3.1.0) 

因此acts_as_commentable_with_threading將無法使用activerecord 3.1.0?我不知道如何解決這個問題?

感謝

回答

1

目前,您無法解決它,因爲acts_as_commentable_with_threading取決於使用~> 3.0.0這意味着>= 3.0.0< 3.1(參考:http://gembundler.com/rationale.html - 部分「更新依賴」

唯一的選擇是:

  • 將Rails降爲3.0或
  • 沒有使用這個寶石,因爲它的支持是不是最新的瓦特/拉泰什版本的ActiveRecord的,據筆者
相關問題