andandandand
andandandand

Reputation: 22270

Problem Migrating Rails 3.0.9 to Rails 3.1? ActiveRecord::ConnectionNotEstablished

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:

enter image description here

How can I setup this Gemfile correctly for Rails 3.1?

Upvotes: 2

Views: 1515

Answers (1)

Simone Carletti
Simone Carletti

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

Related Questions