I\'m trying to push my app to heroku but am getting this message.
Gem::LoadError: Specified \'sqlite3\' for database adaptor, but the gem is not loaded.
<
I've also encountered this problem. I found out that the installed sqlite3 is version 1.4.2. To solve it, I add this code:
gem 'sqlite3', '~> 1.3.6', '< 1.4'
Below is my setup:
$ rails -v
Rails 4.2.3
$ gem env
RubyGems Environment:
– RUBYGEMS VERSION: 2.5.1
– RUBY VERSION: 2.3.0 (2015-12-25 patchlevel 0) [x86_64-linux]
– INSTALLATION DIRECTORY: /home/armano/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0
– USER INSTALLATION DIRECTORY: /home/armano/.gem/ruby/2.3.0
– RUBY EXECUTABLE: /home/armano/.rbenv/versions/2.3.0/bin/ruby
– EXECUTABLE DIRECTORY: /home/armano/.rbenv/versions/2.3.0/bin
– SPEC CACHE DIRECTORY: /home/armano/.gem/specs
– SYSTEM CONFIGURATION DIRECTORY: /home/armano/.rbenv/versions/2.3.0/etc