Displaying 1 result from an estimated 1 matches for "cmapreview".
2006 May 01
0
Same .rhtml and partial in mailer and non-mailer contexts
...:action => ''list''
end
Then, in order to allow a "preview" of the message in a browser, I found
that if I called Mailer.create_cma(obj), the body was quoted-printable
and not readily displayable in a browser, so I rendered it from my
controller as follows:
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 pa...