我正在尝试使用 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.
任何想法都会有所帮助。