Question

I'm following this railscasts #153, and I'm trying to add table data to prawn. I keep getting this error:

Prawn::Errors::UnrecognizedTableContent
Était-ce utile?

La solution

Watch out, since prawn will get confused if your table contains any nil or non string values. Try using the .to_s method.

Example

@report.data.to_s
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top