Monday, November 03, 2008

Rails 2.1.1 Htmldoc 0.2.1 PDF generation

I was getting the error:

NoMethodError (undefined method `size' for false:FalseClass):
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/streaming.rb:123:in
`send_data'

Patch the file :
/usr/local/lib/ruby/gems/1.8/gems/htmldoc-0.2.1/lib/htmldoc.rb

with the following:

result.split("\n").each do |line|
+ line.strip!


Reference:

http://textmode.at/2008/5/14/ruby-htmldoc-gem-falseclass-error

No comments:

Post a Comment