簡體   English   中英

Ruby ON rails-Webrick

[英]Ruby ON rails- Webrick

在我的cmd中給出“ rails s”命令時,出現以下錯誤。 該錯誤在鏈接中給出。 我正在使用mongodb作為我的數據庫而不是mysql.'pls建議做什么

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)

假設您正在使用像Mongoid這樣的ODM,則需要擺脫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"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM