search for: create_cma

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

Did you mean: create_a
2006 May 01
0
Same .rhtml and partial in mailer and non-mailer contexts
...@cmaform = Cmaform.find(params[:id]) Mailer.deliver_cma(@cmaform) flash[:notice] = ''CMA Sent.'' redirect_to :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...