Showing C:/RubymineProjects/pms4mysql/app/views/payslips/to_pdf.pdf.prawn where line #24 raised:
undefined method `table' for #<Prawn::Document:0xca98060>
22 23 24 25 26 27 |
|
Prawn-related Railscasts episodes are pretty old. They definitely
use pre-1.0 version of Prawn. Prawn has changed a lot since then.
One of the changes is extraction of tables into their own gem (prawn-table).
If your goal is to just replicate the code from the screencasts I'd suggest using an older version of Prawn. Find the one that was the latest at the time of the episode you're working through was released and use that.
If your goal is to write some production code I'd suggest you
adapting the code to the latest version of Prawn as those old
versions are not supported any more.
--
You received this message because you are subscribed to the Google Groups "Prawn" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prawn-ruby+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to prawn-ruby+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Prawn" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/prawn-ruby/2Rr0uv1XxFg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to prawn-ruby+unsubscribe@googlegroups.com.