Displaying 4 results from an estimated 4 matches for "pdf_helper".
2012 Sep 11
10
wickedpdf
Hi all i''m trying to generate pdf and i got this error
Location of wkhtmltopdf unknown and i also get
Bad wkhtmltopdf''s path
gpa/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:26:in `initialize''
/EDWARD/_gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `new''
/EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `make_pdf''
/EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:65:in `make_and_send_pdf''
/EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:17:in `render''
/EDWARD/gpa/app/contro...
2012 Sep 15
2
[RSpec Testing] Methods take two arguments
Hello,
Here is my *pdf_helper.rb* => http://pastebin.com/QU1kTKXk. I want to test,
if self.create method can take more than two arguments. But, when I try to
run my test. It showed
*PdfHelper Should have two arguments
Failure/Error:
create_pdf.should_receive(object,template).with(user,file)
NameError:
u...
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 =>
2012 Nov 26
5
Missing template pages/layout only occasionally
...ruby/gems/1.8/gems/actionpack-3.0.9.rc5/lib/action_view/lookup_context.rb:81:in
`find_template''
...
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.9.rc5/lib/action_controller/metal/instrumentation.rb:39:in
`render_without_wicked_pdf''
/var/www/procyon-live/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:19:in
`render''
/var/www/procyon-live/app/controllers/pages_controller.rb:154:in `show''
...
Rails 3.0.9.rc5
Ruby 1.8.7
Obviously I didn''t want to include the entire backtrace. Let me know if
it would help.
Thanks,
Rick
--
Posted via http://www.ruby-forum.com/.
--...