在我的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)发布于 2013-05-14 03:56:25
假设您使用的是像Mongoid这样的ODM,那么为了正确使用MongoDB,您将需要摆脱ActiveRecord。
这里的说明应该很有帮助:http://mongoid.org/en/mongoid/docs/installation.html
Open myapp/config/application.rb and near the top, remove the line require "rails/all"https://stackoverflow.com/questions/16529608
复制相似问题