Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gem

问题:出现上面的提示后,我gem 安装了sqlite3,并且bundle install 了,在gems中也有sqlite3,但是依然报错。

google了一下,有人说是sqlite3(1.4.0)版本高了的问题,所以在Gemfile中将gem 'sqlite3' 改为 gem‘sqlite3’ ,'~>1.3.0'

然后 bundle install ,再启动服务器 ,ok!

你可能感兴趣的:(Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gem)