Displaying 1 result from an estimated 1 matches for "cmacomp".
Did you mean:
acomp
2006 May 01
0
Same .rhtml and partial in mailer and non-mailer contexts
...> @cmaform
end
However, when I did this, the partial called by the template couldn''t be
found. So I modified the render(:partial ... ) call in my temmplate to
set the path to the partial _comp.rhtml as follows:
<%= render(:partial => "mailer/comp", :object => @cmacomp,
:locals => {:cmacomp => @cmacomp}) %>
This worked with my preview, but it does not work with the
Mailer.deliver method. The error message is the somewhat unhelpful ""No
rhtml, rxml, rjs or delegate template found".
Is there an elegant way to get this Mailer template...