I installed postgres on my Mac and tried Rails for the first time. I turned on the gem "pg" and removed the sqlite3 stone (in the end, why do you need the latter if you use the first). However, when I tried to start the server, I received this error message
.rvm/gems/ruby-1.9.3-rc1@rails321/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb:143:in `block in replace_gem': Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.) (LoadError)
So, I turned on the sqlite3 pearl again, and now the server is working fine, but I really have no idea if my test application uses sqlite3 or pg?
a) Do I assume that the sqlite3 monster is installed if I plan to use pg pearls? b) If I have only one of the two installed, is there a way to find out which one uses the test application (since both of them are in the Gemfile)
Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.1'
gem 'pg'
gem 'devise'
gem 'sqlite3'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
source
share