Found it: have to monkeypatch but at least it''s simple:
http://blog.kreeti.com/rails/multipart-emails-with-mailer-templates
Hopefully that''ll soon go in as a bug fix. (and maybe it is for 2.3.
I''m still on 2.2.2)
-Danimal
P.S. I posted just in case this helps someone else.
On Mar 25, 10:34 pm, Danimal
<fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> So I''m happy to see that ActionMailer supports layouts now (it may
> have for a while, but I just now realized it).
>
> But I don''t see a way to turn them off selectively or by multipart
> type.
>
> For example, if I have a layout that''s really simple in
"layouts/
> email.html.erb":
>
> <div style="border:1px solid gray">
> <%= yield %>
> </div>
>
> I can then use that in my ActionMailer class with a line at the top:
> layout ''email''
>
> But when I use multipart and have an HTML and a PLAIN file, they both
> use the layout and thus the plain contains the <div> tag.
>
> Is there any way to avoid this? or turn it off in certain cases?
>
> Thanks,
>
> -Danimal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---