Forum: Ruby on Rails url_for in email templates

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.
F239c904079c2e878f084747486177b9?d=identicon&s=25 Nicholas P. Mueller (Guest)
on 2006-04-13 19:58
(Received via mailing list)
Is there a way I can use url_for in an email template?  When I try
and use it it barks a no method error.

Thanks,

Nicholas P. Mueller
37c332966b49eeb1d54eeefd3bc5ce97?d=identicon&s=25 David Corbin (Guest)
on 2006-04-14 03:24
(Received via mailing list)
On Thursday 13 April 2006 01:57 pm, Nicholas P. Mueller wrote:
> Is there a way I can use url_for in an email template?  When I try
> and use it it barks a no method error.

I don't think you can.  My current strategy is to make all URLs an
argument,
though I'm tempted to create a UrlBuilder class that delegates back to
the
controller.
This topic is locked and can not be replied to.