RailsCasts Pro episodes are now free!

Learn more or hide this

cwaldburger's Profile

GitHub User: cwaldburger

Comments by

Avatar

Thank you Ryan, very interesting episode!
I'm trying to get the mailer to work on heroku. I did
heroku addons:add sendgrid:starter
but whenever I try to send an email from heroku, I get this error:

ruby
2012-07-18T23:14:05+00:00 heroku[router]: GET guestlist12.herokuapp.com/assets/application-ea8b32131f736b7d8bc98f7cb199c9cf.css dyno=web.1 queue=0 wait=0ms service=11ms status=304 bytes=0
2012-07-18T23:14:10+00:00 app[web.1]: 
2012-07-18T23:14:10+00:00 app[web.1]: 
2012-07-18T23:14:10+00:00 app[web.1]: Started POST "/password_resets" for 68.5.179.249 at 2012-07-18 23:14:10 +0000
2012-07-18T23:14:10+00:00 app[web.1]: Processing by PasswordResetsController#create as HTML
2012-07-18T23:14:10+00:00 app[web.1]:   Parameters: {"utf8"=>"", "authenticity_token"=>"H1VHMVJocUWdwzwVV0AbLB1Pfqgug+jT846sE794ISA=", "email"=>"cedric.waldburger@mediasign.ch", "commit"=>"Reset Password"}
2012-07-18T23:14:10+00:00 app[web.1]:   Rendered user_mailer/password_reset.text.erb (0.8ms)
2012-07-18T23:14:13+00:00 app[web.1]: Sent mail to cedric.waldburger@mediasign.ch (3117ms)
2012-07-18T23:14:13+00:00 app[web.1]: Completed 500 Internal Server Error in 3410ms
2012-07-18T23:14:13+00:00 app[web.1]: 
2012-07-18T23:14:13+00:00 app[web.1]:   app/models/user.rb:37:in `send_password_reset'
2012-07-18T23:14:13+00:00 app[web.1]: 
2012-07-18T23:14:13+00:00 app[web.1]:   app/controllers/password_resets_controller.rb:7:in `create'
2012-07-18T23:14:13+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2)):

Anyone else had this problem? Any ideas how to fix this?

Thanks in advance!