0

在我的 cmd 中给出“rails s”命令时出现以下错误。错误在链接中给出。我使用 mongodb 作为我的数据库,而不是 mysql。'请建议做什么

http://paste.kde.org/742976

-- 相关剪辑 ---

=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (cannot load such file --sqlite3/sqlite3_native) (LoadError)
4

1 回答 1

0

假设您正在使用像Mongoid您需要摆脱的ODMActiveRecord以便正确使用 MongoDB。

这里的说明应该会有所帮助: http: //mongoid.org/en/mongoid/docs/installation.html

Open myapp/config/application.rb and near the top, remove the line require "rails/all"
于 2013-05-13T19:56:25.137 回答