我正在尝试使用Mongoid在Padrino中启动并运行一个示例项目。我在运行bundle时遇到了一个错误,因为padrino需要3.0.8的activesupport,mongoid需要3.0.5。所以我gem安装了3.0.5,并且我能够运行捆绑包。但现在,当我试图创建一个像这样的新模型时
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'