Ruby - ActiveRecord::ConnectionNotEstablished

前端 未结 12 1807
臣服心动
臣服心动 2020-12-30 19:08

I am rather new to Ruby and have been following along with the book \"Ruby On Rails 3 Tutorial - Learn Ruby by Example - by Michael Hartl\". I am currently in Chapter 3 whic

12条回答
  •  清酒与你
    2020-12-30 19:56

    I had the same problem, I started the sample-app from scratch and used this gemfile:

    source 'http://rubygems.org'
    
    gem 'rails', '3.1.1'
    
    gem 'sqlite3'
    
    group :development do
      gem 'rspec-rails', '2.6.1'
    end
    
    
    group :test do
      gem 'rspec-rails', '2.6.1'
      gem 'webrat', '0.7.1'
    end
    
    group :assets do
      gem 'sass-rails',   '~> 3.1.4'
      gem 'coffee-rails', '~> 3.1.1'
      gem 'uglifier', '>= 1.0.3'
    end
    
    gem 'jquery-rails'
    

    This solved the problem for me :)

提交回复
热议问题