Displaying 1 result from an estimated 1 matches for "deliver_sent".
2006 Jul 03
0
image_tag refuses to work in email context
...hod called sent that takes some args and send email to
a recipient. Works fine. I am testing this in script/console.
I now want to start sending HTML email.
Content type is "text/html".
I can successfully deliver HTML email using the template "sent.rhtml"
thusly:
ImageMailer.deliver_sent("/foo/bar/baz")
sent.rhtml is just a bit of HTML tags nothing exciting.
However, when try to include the helper function image_tag thusly:
<%= image_tag("rails.png", :size => "50x64") %>
Irb angrily spews all sorts of unintelligable error messages. All I di...