Search code examples
ruby-on-railspdfprawnprawnto

Pdf generation with Rails 3


I need to generate PDFs with Rails 3.0.3.

Prawn + Prawnto looks great as showed by Ryan Bates

But I cannot make his example works, the table function is not recognized by the pdf variable

Any insight on this problem?

Thanks


Solution

  • I found a quick fix, but not really happy with it...

    adding require 'prawn/layout' to my view fix the problem