On Jul 21, 2005, at 8:01 AM, Matthew Denner wrote:
> Hi,
>
> Is it possible to use the ''link_to'' helper (and other
view helpers)
> in an email body when using ActionMailer? I''ve tried to call it
> but it says that the method is not defined.
Not really. The link_to helper requires the existence of a url
object, which controllers have, and mailer''s don''t. What you
can do
is pass the URL''s you want generated to the mailer as strings and
have them substituted in directly.
If someone wanted to create a patch to allow link_to to work from
within AM, that''d be great. ;)
- Jamis