search for: html_string

Displaying 4 results from an estimated 4 matches for "html_string".

Did you mean: aml_string
2008 Sep 08
2
Problems with async worker request
...#39;'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) end end Then there...
2008 Dec 16
3
Princely Plugin: get nil.size error
Hi All, I want to generate pdf with css. I am using princely plugin. This is code which I written def pdf prince = Prince.new() html_string = render_to_string(:template => ''/users/paid_invoice.pdf.erb'') send_data( prince.pdf_from_string(html_string), :filename => ''some_document.pdf'', :type => ''application/pdf'' ) end But I am getting error of nil.size...
2010 Jun 03
1
need to save generated pdf in public folder
hai im ruby on rails developer, im integrating princely plugin and prince software to my rails application i have generated pdf file successfully using the following code princely = Princely.new() html_string = render_to_string(:template => ''test_methods/ visual_test/generate_report.rhtml'', :layout=> false) send_data( princely.pdf_from_string(html_string), :filename => ''visual_test'', :type => ''application/pdf''...
2012 Jul 22
1
RSpec/rails & Capybara: #within
I''m new with Capybara and after a good amount of google, I still can''t figure out how the #within methods works! I can use it only if I call visit before? There''s no way to use it on a string, like the `page = Capybara.string(html_string)` trick? When describe a view, I want something like that: describe "path/to/view.html.erb" do it "should pass" do render within(''form#id'') { should have_selector ''input'', type: ''submit'' should have_sel...