Dynamic hostname portion in Email links?

I have some emails which contain links like:


which is fine for the live site, but we develop and allow evaluation on
development.myserver.com’, so the link should get the new hostname
complete with subdomain. At present the mail templates have the links
hard-coded in.

Is it possible to make this work/is there a better way of doing links in
emails? - I tried to use hostname() but it’s not accessible to my
template, model or controller.



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs