search for: temmplat

Displaying 1 result from an estimated 1 matches for "temmplat".

Did you mean: templat
2006 May 01
0
Same .rhtml and partial in mailer and non-mailer contexts
...llows: def cmapreview @cmaform = Cmaform.find(params[:id]) render :template => "mailer/cma.text.html.rhtml", :id => @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 s...