0
votes

I have worked with prawnto before and it works great. But when I use it again today, I got this error:

uninitialized constant ActionView::CompiledTemplates::Prawn

and the code is just

show.html.erb

 pdf.text "Hello World"

Can anyone help me on this?

1
What did you change between the time it was working and the time when it was not working?Ecnalyr
No, It's a completely different application, which used Rails 4.0.1.Sarun Intaralawan
What version of rails did the previous application use? And. . . are you talking about this gem here: github.com/prior/prawnto ? It hasn't been updated in 6 years, it may be a bit difficult to find someone who knows anything about it. If you want to proceed we're going to need more information. What have you done to try to resolve the problem so far? What hasn't worked?Ecnalyr
There is also this version of prawnto which has had some more recent attention: github.com/GetJobber/prawnto . Are you using this one?Ecnalyr
Sorry for inactivity, the electricity was down. By the way, the gem that you mentioned works great, thanks @Ecnalyr.Sarun Intaralawan

1 Answers

0
votes

You are using a version of Prawnto that hasn't been updated in about 6 years.

You should switch to this version of the gem: prawnto_2