“Maria Gutierrez” [email protected]
Any idea why image_tag doesn’t work within an email template? I’m trying to
generate the URL for an image and I’m getting the following error.
undefined method `request’ for #Mailer:0x6a719e0
I’ve been able to use link_to but no luck with image_tag.
Are you sure, when I last checked `link_to’ wasn’t working. Make sure
error is due to image_tag and not link_to.
I think, the actionmailer views have access to very limited set of
helpers, and emails are not necessarily sent due to controller actions,
can be triggered from models also, because of this reason link_to is not
available in email templates, as it requires the request object to get
Read my blog at: http://cuttingtheredtape.blogspot.com/
| Great wits are sure to madness near allied,
| And thin partitions do their bounds divide.
| (John Dryden, Absalom and Achitophel, 1681)