Reputation: 22270
I'm following chapter 2 of ruby.railstutorial.org and haven't able to connect to the DB on Rails 3.1.
My guess is some gem in the Gemfile is missing.
I've tried using the provided Gemfile (to no avail, localhost doesn't even reach the server) and the default one. The default one gets me this:
How can I setup this Gemfile correctly for Rails 3.1?
Upvotes: 2
Views: 1515
Reputation: 176402
It happened to me as well. Make sure you are running the latest sqlite3 gem.
In your Gemfile
, relax the dependency to ~> 1.3.0
, then update the Gemfile.lock
by running
$ bundle update sqlite3
Upvotes: 3