开发者

Heroku/Devise confirmation link

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜