I am trying to push my app on heroku. I am still in dev. I use devise with the confirmable module.
When I try to add a user with the heroku console I got this error:<
I had to do a number of things to get it to work in the production environment:
Inside of my production.rb
file (/config/environments/production.rb) I added the following:
Rails.application.routes.default_url_options[:host] = 'myappsname.herokuapp.com'
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default :charset => "utf-8"
This is with Rails 4 and Devise 3