0

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!

matski
  • 541
  • 6
  • 19
  • don't use a URL? remove the `http://` portion... – Marc B Jul 03 '13 at 17:52
  • Why wouldn't I use a URL? - it's a live app. Removing 'http://' makes no difference. – matski Jul 03 '13 at 17:55
  • 1
    remove `http://www.` using host `config.action_mailer.default_url_options = { host: "mydomain.com" }` [read here](http://api.rubyonrails.org/classes/ActionMailer/Base.html#config.action_mailer.default_url_options) – rails_id Jul 03 '13 at 18:01

0 Answers0