On May 27, 2005, at 9:15 PM, Trevor Squires wrote:
> Hi,
>
> I''m pretty sure the errors I''m getting already answer my
question
> (i.e. ''No'') but I thought I''d double-check.
>
> Is it possible to call render_partial in an ActionMailer rhtml  
> template?  If not, is there an equivalent feature?
>
> I''ve got a number of different loop sections that build up email  
> contents and they appear in multiple templates.  I''ve ended up
with
> something very, very wet (i.e. not DRY).  To be able to do  
> render_partial would take away all my pain.
You can''t do render_partial, but you should be able to use render:
   <%= render ''some/view'', :local_var =>
"something" %>
- Jamis