I try to create a PDF using shrimp, but I get: Prawn :: Errors :: UnrecognizedTableContent

I am following this railscasts # 153 and I am trying to add table data to a shrimp. I keep getting this error:

Prawn::Errors::UnrecognizedTableContent
+4
source share
1 answer

Beware, as the shrimp will get confused if your table contains any nil or non string values. Try using the .to_s method.

Example

@report.data.to_s
+10
source

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


All Articles