开发者

Heroku/Devise confirmation link

开发者 https://www.devze.com 2023-04-12 14:03 出处:网络
I have the confirmable module enabled and I can se开发者_开发技巧nd e-mail from my application, but the link in the e-mail that a user receives appends localhost to the beginning of the url. If you re

I have the confirmable module enabled and I can se开发者_开发技巧nd e-mail from my application, but the link in the e-mail that a user receives appends localhost to the beginning of the url. If you remove that it confirms the user. How do I remove the unnecessary localhost from my link? Note: I am using heroku, with send grid enabled.


sounds like you need to set

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

in your production.rb to be the value of your domain.

0

精彩评论

暂无评论...
验证码 换一张
取 消