search for: with_empty_asset_id

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

2008 Sep 08
2
Problems with async worker request
...creation, but in doing so, I''ve run into a very strange problem. Below is a method that''s called from the controller which creates a new worker, then grabs the worker and calls the ''build_pdf'' method asynchronously. def make_pdf(template_path, worker_key) with_empty_asset_id do html_string = render_to_string(:template => template_path, :layout => ''pdf'') key = MiddleMan.new_worker(:worker => :prince_xml_worker, :worker_key => worker_key) MiddleMan.worker(:prince_xml_worker, key).async_build_pdf(:arg => html_string)...