Devise email confirmation from localhost
- by John
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