Forum: Ruby on Rails Using image_tag in Action Mailer???

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris I. (Guest)
on 2006-01-25 20:28
(Received via mailing list)
I'm trying to send a HTML formatted email with Action Mailer and
everything works fine except for when I try to use a Rails image_tag in
my email template.  Does anyone have experience doing this? I keep
getting this error

|undefined method `request' for #<SamplesDirectMailer:0x231d4d8>|

Extracted source (around line *#7*):

|7:   <div style="position:absolute; top:0px; right:0px;"><%= image_tag "/images/ldc.jpg" 

I've also tried "../../images/ldc.jpg" and a few other paths
If I remove the image_tag I receive the email just fine.... and yes the
image is in the /images dir

Thanks in advance for the help,
This topic is locked and can not be replied to.