sqlite3 - Rails 5: Could not load 'active_record/connection_adapters/sqlite3_adapter' -


i'm using ruby 2.3.1 on windows 7. based on http://guides.rubyonrails.org/getting_started.html tried create rails 5 app afresh, without success due gem sqlite3-1.3.11.

the first error after "rails start" "cannot load such file -- sqlite3/sqlite3_native (loaderror)". problem solved error when starting rails server on windows . that's okay.

but impossible me fix second error (loaderror in browser): "could not load 'active_record/connection_adapters/sqlite3_adapter'."

who can help?

this problem may sqlite not correclty installed

firstly check gem file line gem 'sqlite3' if not add , run bundle install if problem still persists follow steps below:

  1. go rubyinstaller.org
  2. download devkit , setup
  3. remove sqlite3 gem running gem uninstall sqlite3
  4. reinstall sqlite3 running gem install sqlite3
  5. include gem 'sqlite3' in gemfile

if still doesn't work problem due version of ruby using. please downgrade ruby version or install linux in machine. had used ruby in windows , caused headache , switched linux.


Comments