hi all,
in my application if the user forget the login details then they
can go to a page where they can enter their mail id and the login
details'll be mailed them to that mail id.after mailing them the user'll
be redirected to the login page.
but after entering the mail id and clicking the button im
getting error like
Errno::ECONNREFUSED in LoginController#take_forgotten
Connection refused - connect(2)
people knows whats the problem please help me.
on 22.04.2008 10:49
on 22.04.2008 14:45
Karthikragunath Bhavani wrote: > > > hi all, > > in my application if the user forget the login details then they > can go to a page where they can enter their mail id and the login > details'll be mailed them to that mail id.after mailing them the user'll > be redirected to the login page. > > but after entering the mail id and clicking the button im > getting error like > > Errno::ECONNREFUSED in LoginController#take_forgotten > > Connection refused - connect(2) > > people knows whats the problem please help me. Hi I'm not sure about your specific problem but have you checked that your rails app is able to connect to the database/server? try this from script/console: ActiveRecord::Base.connection if that doesn't raise any exceptions then the connection's OK Regards Saravanan
on 22.04.2008 19:31
It could also be an ActionMailer error. Try Saravanan's suggestion,
and if you're still getting an error, paste the whole trace. It might
also be helpful to see your config/environment.rb contents. You could
try setting this in the Rails::Initializer.run do |config| block:
config.action_mailer.raise_delivery_errors = false
You might also need this in your environments/#{env}.rb files. Then
again, you do want to know about delivery errors at this point, don't
you?
-Kyle
On Apr 22, 7:45 am, Saravanan Krishnan <rails-mailing-l...@andreas-