문제

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

Prawn::Errors::UnrecognizedTableContent
도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top