search for: generate_confirmation_email

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

2005 Dec 19
0
Re: Rails Digest, Vol 15, Issue 392
...attachment "text/html" do |a| a.body = html end attachment "application/pdf" do |a| a.body = label.render a.filename = "mailing-label.pdf" end end end I then invoke the above method from my controller as follows: def generate_confirmation_email label = create_mailing_label(@order, @person) html = render_to_string(:template => "order_mailer/confirm", :layout => "blank") OrderMailer::deliver_confirmation_message(@person, label, html) end And voila, it works!...