Ruby ON rails- Webrick
在我的cmd中给出“rails s”命令时出现以下错误。错误在链接中给出。 我使用MongoDB的作为我的数据库,而不是mysql.'pls建议做什么Ruby ON rails- Webrick
- 相关剪辑---
=> 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)
假设你使用的是ODM像Mongoid
你将需要摆脱ActiveRecord
才能正确使用MongoDB。
说明这里应该是有帮助的:http://mongoid.org/en/mongoid/docs/installation.html
Open myapp/config/application.rb and near the top, remove the line require "rails/all"
这根本不是真的。我在一个应用程序中使用mongoid和MySQL + postgres和AR。 – cpuguy83 2013-05-14 03:17:31
@ cpuguy83我不是说你不能一起使用它们。 OP在使用MongoDB和不使用MySQL之类的时候询问如何解决这个错误信息 - 这只是一个建议。 – 2013-05-14 05:37:09
可以粘贴你的Gemfile? – stephenmurdoch 2013-05-13 19:58:44