ruby on rails - I'm trying to create PDF's with Prawn, but I get: Prawn::Errors::UnrecognizedTableContent -


I am following this RailCags # 153, and I am trying to add table data to prawns. I keep getting this error:

  shrimp :: errors :: unchanging table content    

See, because prawns will be confused if your table contains a zero or non-string value. Try using the .to_s method.

Example

  @ report.data.to_s    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -