Forum: Ruby on Rails url generation in ActionMailer views

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3504745159d79c585e4f7df8df76aa10?d=identicon&s=25 Ingo Weiss (ingoweiss)
on 2007-02-03 04:26
Hi,

I am having trouble generating a url in a mailer template. When I use
url_for, or resource_url -type methods, the generated url is always
missing the host part and therefore not clickable in the email
('/my/url' instead of 'http://www.mysite.com/my/url'). How can I fix
that?

Thanks!
Ingo
3504745159d79c585e4f7df8df76aa10?d=identicon&s=25 Ingo Weiss (ingoweiss)
on 2007-02-03 19:37
Hi all,
I found the answer to this in anther thread in this forum. Guess I
should have searched first... Ingo
This topic is locked and can not be replied to.