How do I configure the hostname for Rails ActionMailer?

前端 未结 7 1310
日久生厌
日久生厌 2020-12-29 06:05

I\'m working on a fairly traditional forgot password email - I want to email the user a password change token embedded in a link that they can click on in order to change th

7条回答
  •  情话喂你
    2020-12-29 06:27

    Can you just do

    <%="click here", :controller => foo, :action => 'bar', :token => token, :host=>request.host -%>
    

提交回复
热议问题