Displaying 1 result from an estimated 1 matches for "paid_invoice".
Did you mean:
add_invoice
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
You have a nil object when you didn''t expect it!
You mi...