*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 Trace<http://localhost:3000/#> | Full Trace <http://localhost:3000/#> app/controllers/greetings_controller.rb:7:in `index'' *please assist me with this.* * * *thanks* -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Is your database.yml file set up? You have created the DB and ran migrations? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
salim mandrekar
2011-Mar-26 03:17 UTC
Re: how to solve ActiveRecord::ConnectionNotEstablished
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? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bryan Crossland
2011-Mar-26 23:04 UTC
Re: Re: how to solve ActiveRecord::ConnectionNotEstablished
On Fri, Mar 25, 2011 at 10:17 PM, salim mandrekar <mandrekar.salim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2011-Mar-27 10:48 UTC
Re: Re: how to solve ActiveRecord::ConnectionNotEstablished
On 26 March 2011 23:04, Bryan Crossland <bacrossland-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Fri, Mar 25, 2011 at 10:17 PM, salim mandrekar > <mandrekar.salim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.rbIn 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 -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.