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 of
layout. Thanks in advance for any assistance.