Hey,
I am trying to use princexml with ruby on rails on my macbook. I installed the prince and I followed the instructions,however I am not able to generate the pdf. If I use this simple example:
def show
respond_to do |format|
format.html
format.pdf do
render df => "filename", :stylesheets => ["application", "prince"], :layout => "pdf"
end
end
end
it causes 2 errors: Broken pipe or undefined method `bytesize' for nil:NilClass. Any clue?
I am using Mac OS Lion 10.7.4, Ruby 1.8.7 and Rails 2.3.14.
I am trying to use princexml with ruby on rails on my macbook. I installed the prince and I followed the instructions,however I am not able to generate the pdf. If I use this simple example:
def show
respond_to do |format|
format.html
format.pdf do
render df => "filename", :stylesheets => ["application", "prince"], :layout => "pdf"
end
end
end
it causes 2 errors: Broken pipe or undefined method `bytesize' for nil:NilClass. Any clue?
I am using Mac OS Lion 10.7.4, Ruby 1.8.7 and Rails 2.3.14.