Devise email confirmation from localhost

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2011-11-17T17:41:36Z Indexed on 2011/11/17 17:51 UTC
Read the original article Hit count: 249

I am able to get the registration confirmation email to send out in deployment on Heroku, but when I try a registration on localhost:3000, I get the following error:

undefined local variable or method `confirmed_at' for #<User:0xb67a1ff0>

In my config/environments/production.rb file I have:

config.action_mailer.default_url_options = { :host => 'xxxx.com' }

And I have an initializer file with the following format:

ActionMailer::Base.smtp_settings = {
   :user_name => "[email protected]",
   :password => "xxxxxx",
   :domain => "xxxx.com",
   :address => "smtp.sendgrid.net",
   :port => "xxx",
   :authentication => :plain,
   :enable_starttls_auto => true
};

What settings do I need to get the localhost working?

Thanks!

John

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about devise