List Info

Thread: image_tag + ActionMailer




image_tag + ActionMailer
user name
2006-08-04 10:40:40
Hi,

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.

I've seen a similar post to this in the list but no one has posted a response. build the image tag myself but I would like to keep it neat.

Maria
image_tag + ActionMailer
user name
2006-08-04 16:53:04
Try explicitly putting

helper :url_helper

In your mailer model class.



On 8/4/06 3:40 AM, "Maria Gutierrez&quot; <gutierrez.mariagmail.com&gt; wrote:

Hi,

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.

I've seen a similar post to this in the list but no one has posted a response. build the image tag myself but I would like to keep it neat.

Maria


_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails

Re: image_tag + ActionMailer
user name
2007-01-10 18:48:51

On 10-Jan-07, at 8:58 PM, Aidas Bendoraitis wrote:

> We are going to set our Django projects under
> version control on a dedicated server. We will also
publicly run
> several Django websites on the same server. So what is
a better
> practice -- to use the code under source
> control for the public websites directly,

this is simplest - only you need to be sure about who has
permission  
to do the svn up and apache restart.

-- 

regards
kg
http://lawgon.livejourn
al.com
http://nrcfosshelpline
.in/web/



--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: image_tag + ActionMailer
user name
2007-01-10 18:48:51
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )