How to generate urls for mails with an application in API mode?
I want to generate a URL of type: "host/confirmation/token"?
I tested:
<%= url_for("confirm/#{@token}") %>
Result:
confirm/JtuQW54DkZXtAnhm
But host are not present, how to put "host" inside ?
I configured:
config.action_mailer.default_url_options = {
host: "lol.com"
}
only_pathistrueby default, did you triedonly_path: falseas params ofurl_forcall?