ターミナルで rails s と打つと
=> Booting WEBrick
=> Rails 4.2.6 application starting in development on http://localhost:3000
=> Run rails server -h
for more startup options
=> Ctrl-C to shutdown server
[2016-11-03 19:37:14] INFO WEBrick 1.3.1
[2016-11-03 19:37:14] INFO ruby 2.2.2 (2015-04-13) [x86_64-darwin15]
[2016-11-03 19:37:14] INFO WEBrick::HTTPServer#start: pid=9158 port=3000
このように表示されます。
localhost3000: と打つと
Gem::LoadError
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add gem 'sqlite3'
to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
Extracted source (around line #177):
require path_to_adapter rescue Gem::LoadError => e raise Gem::LoadError, "Specified '#{spec[:adapter]}' for database adapter, but the gem is not loaded. Add `gem '#{e.name}'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord)." rescue LoadError => e raise LoadError, "Could not load '#{path_to_adapter}'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile.", e.backtrace end
どうしたらよろしいですか?お願いします。
追記 gem 'mysql2', '0.3.18'
を使えるようにしたいです。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。