Tung's Blog RSS

random thoughts by tung

Archive

May
18th
Mon
permalink

no such file to load — sqlite3 error fix

Figure this might help someone.

Start a new rails project and want to use sqlite like but keep getting this error?

no such file to load -- sqlite3 error

Adding this to the bottom of our config/environment.rb will fix the issue.

gem ‘sqlite3-ruby’

The naming of the sqlite3-ruby gem doesnt follow the gem require convention, so you need to explicity add sqlite3-ruby to your load path.

Hope this helps.