Forum: Ruby on Rails image_tag resolution of path to image not working in html emails

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.
lunaclaire (Guest)
on 2009-03-15 21:59
(Received via mailing list)
I'm using the inline_attachment gem at:

http://github.com/betamatt/inline_attachment/tree/master

to include images in my html emails and almost have everything working
well now, except that what works in development does not work in
production.

when sent from the development machine here's what gets inserted by
image_tag in the email that goes out:

<img alt="RedeyeStats.com" height="35px" src="cid:
1237146569.011RedeyeLogo.gif@inline_attachment" style="border: none;"
width="234px" />

when sent from production:

<img alt="RedeyeStats.com" height="35px"
src="/images/RedeyeLogo.gif?1236723122" style="border: none;"
width="234px" />

Note the relative path.

So, something's not getting resolved correctly in production. Can
anyone pt me in the right direction to figure out why?

Thx.
This topic is locked and can not be replied to.