Pdf Generation with Rails 3

I need to create PDF files with Rails 3.0.3.

Shrimp + Creolto looks great as shown by Ryan Bates

But I can not get his example to work, the function is tablenot recognized by the variablepdf

Any understanding of this problem?

thank

+3
source share
2 answers

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

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

0
source

open shrimp-0.8.4 \ lib \ prawn \ core.rb

"require". , "/", . - , .

+1

Source: https://habr.com/ru/post/1788550/


All Articles