![](/img/trans.png)
[英]Bundler could not find compatible versions for gem "activemodel":
[英]Bundler could not find compatible versions for gem “activemodel”
試圖在rails 4.1中安裝mongoid 3.1.6
Bundler找不到gem“activemodel”的兼容版本:在Gemfile中:
mongoid (~> 3.1.6) ruby depends on
activemodel (~> 3.2) ruby
rails (= 4.1.0) ruby depends on
activerecord (= 4.1.0) ruby depends on
activemodel (4.1.0)
當mongoid降級到1.0.6時它工作正常,但我需要在軌道4.1中使用mongoid 3.1.6。 有沒有解決這個問題的解決方案?
您需要使用4.x版本的mongoid,它使用activemodel >= 4.0.0
。 這是最新的:
gem 'mongoid', '~> 4.0.0'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.