1

我正在尝试使用 Mongoid 在 Padrino 中启动并运行一个示例项目。运行 bundle 时出现错误,因为 padrino 需要 3.0.8 的 activesupport,而 mongoid 需要 3.0.5。所以我 gem 安装了 3.0.5 并且我能够运行 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.

任何想法都会有所帮助。

4

2 回答 2

0

升级 ruby​​gems,他们可能会允许它工作。

于 2011-06-14T16:34:12.903 回答
0

目前 bundler 和 Active* 依赖也有一点问题,所以强制它是gem 'activesupport', '~>3.0.11', :require => 'active_support'

于 2011-06-23T08:20:17.390 回答