如果我有依赖关系冲突的宝石,该怎么办?

问题描述

| 我正在尝试使用Mongoid在padrino中启动并运行一个示例项目。运行bundle时出现错误,因为padrino需要3.0.8的activesupport,而mongoid需要3.0.5。所以我安装了3.0.5 gem,并且能够运行bundle。但是现在当我尝试创建一个新模型时
padrino g model post title:string body:text
我得到这个错误
=> Problem loading ./config/boot.rb
=> You have already activated activesupport 3.0.8,but your 
Gemfile requires activesupport 3.0.5. Consider using bundle exec.
任何想法都会有所帮助。     

解决方法

        升级rubygems,他们可能会允许它工作。     ,        目前,bundler和Active *依赖项还存在一些问题,因此将其强制为
gem \'activesupport\',\'~>3.0.11\',:require => \'active_support\'