Although I am relatively new to Ruby on Rails, I have been developing apps for a short while now. The problem I seem to have is when I create a new rails app (locally / using c9) I seem to be getting this error when I start up the apache server
"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)"
In My Gem file I can see that the sqlite3 gem is present.
I have tried uninstalling and reinstalling the sqlite3 gem trying both versions 1.3.13 as well as 1.4.0 but with no success.
I have also 'git cloned' one of my older completed apps from git hub on to my 'local' and c9 development environments and will work perfectly until I bundle update, Then I get the same error message!
Can anyone give me some advise? I am aware that this problem was brought up a few years back but was wondering if anyone has encountered this recently and if/how they resolved this?
Many Thanks
gem 'sqlite3', '~> 1.3.11'
ActiveRecord::Base.establish_connection(configuration[Rails.env])
. 'Rails.env' here is 'production' and 'configuration' is my loaded 'database.yml' file where 'sqlite3' is specified as the adapter:production: adapter: sqlite3
. This all used to work. I tried uninstalling , re-installing, updating, etc, the gem as well as the bundle.