Hello,
I'm a complete beginner in Ruby on Rails, so excuse me if this is a ridiculous question. Just to bare in mind, I'm using Mac OSX (Snow Leopard), Rails 3, and sqlite3 as a database. I've checked, and everything is up to date (Rails, Ruby, Gems). I am simply creating a test application, and I understand the way to run that is by running the 'rails server' command in Terminal. Unfortunately, that results in an error message (in red) saying 'Could not find gem 'sqlite3 (>= 0, runtime)' in any of the gem sources listed in your Gemfile.'
Now I've checked if sqlite3 is listed in the GemFile, and it is. Here's what it says (this is just the first part of the GemFile, I didn't want to post the whole thing of course):
source 'http://rubygems.org'
gem 'rails', '3.0.4'
# Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Use unicorn as the web server # gem 'unicorn'
It may have to do with my database.yml file, which is setup like this:
'# SQLite version 3.x # gem install sqlite3 development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000'
Is the default setup correct? If not, what would be an appropriate way to set it up?
On a sidenote, if anyone knows how to get rid of MySQL (to start fresh) on a mac, please let me know. I'm not sure where the default installation is, and I would like to get rid of it.
Thanks,
From Jake
Attachments: http://www.ruby-forum.com/attachment/5894/Gemfile http://www.ruby-forum.com/attachment/5895/database.yml