rails/rails — Issue #5230: Active Record 3.1 does not find sqlite adapter
Author: byrnejb
Created: 2012-03-01 17:53:51+00:00
State: open

CentOS-5.7
Rub-1.8.7
Rails-3.1.1
Sqlite-Ruby-1.2.5
SQLIte-3.6.6

With Sqlite-Ruby-1.2.5 installed active record reports this error.

.rvm/gems/ruby-1.8.7-p352/gems/activerecord-3.1.1/lib/active_record/
connection_adapters/abstract/connection_specification.rb:71:in
`establish_connection': Please install the sqlite3 adapter:
`gem install activerecord-sqlite3-adapter` (sqlite3 is not part
of the bundle. Add it to Gemfile.)

The Gemfile contains:

gem 'sqlite3-ruby', "= 1.2.5", :require => 'sqlite3'

There are no notes indicating that a particular sqlite3 adapter is required for Rails-3.1 and any such a dependency, if it exists, seem to me to be a defect. In any case, the problem reported is that an installed gem cannot be found even though it is present.