search for: path_and_file

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

2008 Jun 14
0
does BackgrounDRB not "know" the rails environment it is running within/in parallel with?]
...pon a MiddleMan.worker(:billing_worker), which in turn finds an Invoice and calls upon @invoice.print_invoice "public/forms/invoices/html/#{invoice.invoice_number}.html" to generate a html version of an invoice. The class Invoice.rb has this print_invoice method: def print_invoice path_and_file htmlstring = self.render_to_string "invoices/show", :layout => false File.open(path_and_file, "w+") do |f| f.puts( htmlstring) f.close end true end The self.render_to_string does look like this # Renders a record instance to a string using the prov...