Make sure your config/database.yml referes to proper database credentials,
i.e username, password, socket.

On Wed, May 16, 2012 at 9:22 AM, Jeremy Walker <[email protected]> wrote:

>
>
> On 16 May 2012 03:42, Scott Eisenberg <[email protected]> wrote:
>
>> I'm running Rails 3.2.3 on Mac Lion with sqlite 3.7.7 and ruby 1.9.3p125.
>>  I need to back down rails to 3.1.0 for a project but when I do that a
>> simple index page give me a  ActiveRecord::ConnectionNotEstablished
>> error.
>>
>
> What does
> bundle exec db:migrate
> give you?
>
>
>>
>> Rails 3.2.3 works, 3.1.0 not.  Any ideas?
>>
>>
>> Just to show you it's nothing fancy....
>>
>>
>>
>> Gem file is only:
>>
>> source 'https://rubygems.org'
>>
>> gem 'rails', '3.1.0'
>>
>> # Bundle edge Rails instead:
>> # gem 'rails', :git => 'git://github.com/rails/rails.git'
>>
>> gem 'sqlite3'
>>
>>
>> # Gems used only for assets and not required
>> # in production environments by default.
>> group :assets do
>>   gem 'sass-rails'
>>   gem 'coffee-rails'
>>
>>   # See https://github.com/sstephenson/execjs#readme for more supported
>> runtimes
>>   # gem 'therubyracer', :platform => :ruby
>>
>>   gem 'uglifier', '>= 1.0.3'
>> end
>>
>> gem 'jquery-rails'
>>
>> Routes:
>> root :to => "home#index"
>>
>> home controller:
>> class HomeController < ApplicationController
>>   def index
>>   end
>>
>> end
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>



-- 
Rodrigo Alves Vieira
Software Developer, Bemind

http://www.rodrigoalvesvieira.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to