How to solve ActiveRecord::ConnectionNotEstablished

im using mysql as a database
*
*
*im getting the error which says that *

ActiveRecord::ConnectionNotEstablished in GreetingsController#index

ActiveRecord::ConnectionNotEstablished

Rails.root: C:/railsdev/hello
Application Trace http://localhost:3000/# | Framework
Tracehttp://localhost:3000/#
| Full Trace http://localhost:3000/#

app/controllers/greetings_controller.rb:7:in `index’

please assist me with this.
*
*
thanks

Is your database.yml file set up? You have created the DB and ran
migrations?

yes.
database.yml file is ok…
even i can run the rake db:create and rake db:migrate commands with
zero
errors…

wat can be the problem?

On 26 March 2011 23:04, Bryan C. [email protected] wrote:

app/controllers/greetings_controller.rb

In fact show us from the start of file to the end of that action, and
also the model file (presumably greetings.rb). Strip out irrelevant
methods from there if it is big.

Colin

On Fri, Mar 25, 2011 at 10:17 PM, salim mandrekar
<[email protected]

wrote:

yes.
database.yml file is ok…
even i can run the rake db:create and rake db:migrate commands with
zero errors…

wat can be the problem?

What is on line 7 of this file ?

app/controllers/greetings_controller.rb

B.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs