Forum: Ruby on Rails Using Layouts with ActionMailer when sending html formatted

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.
b.hutchison (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Hello all, I've been spinning my wheels on a problem here, hope someone
help me out. I'm pretty new to Ruby & Rails. I've added some email
capabilities to Typo. Its all finally working for the most part, however
don't know how to get the layout specified. I am calling the Mailer
method to send the email from within the articles controller (for those
familiar with typo). I know about setting the layout in the Render
from reading the Rails book, but where would I do so here? I fire off
Mailer::deliver_email_updates() command and it 'renders' the email based
upon the email_updates method in my Mailer Class (Mailer <

I've even tried setting the layout in the hash that I send to the body,
tried various naming conventions to see if it will get automatically
up, to now avail.

Right now, my email template & partial tempates are scattered with
commends, where are ugly and I'd like to move them up into the <head> of
layout. Thanks in advance for any assistance.


Brian Hutchison
This topic is locked and can not be replied to.