I have Devise set up on my app to handle sign-ups/confirmation emails and sign-ins. My domain www.mydomain.com
is mapped to my production app at production-myapp.herokuapp.com
Everything was fine, but now, if I change
config.action_mailer.default_url_options = { :host => 'production-myapp.herokuapp.com' }
to
config.action_mailer.default_url_options = { :host => 'http://www.mydomain.com' }
Devise breaks when it tries to return the user to the domain name after confirmation. Obviously I don't want to return users to the production-myapp.herokuapp.com
url because that's just confusing.
Does anyone know how I can fix this to work with my domain name? Thanks!