jeudi 19 janvier 2017

Rails Prawn UnrecognizedTableContent

after update Prawn 1.0.0.rc2 to 1.2.1

and install prawn-table

and start to

Prawn::Errors::UnrecognizedTableContent (Prawn::Errors::UnrecognizedTableContent):




table table_data do # , :cell_style => {:borders => [:bottom]}
  rows(0).style(size: 10, font_style: :bold, align: :center)
  rows(1).style(size: 10)
  self.column_widths = { 0 => 140, 1 => 100, 2 => 140, 3 => 70, 4 => 70 }
end

Aucun commentaire:

Enregistrer un commentaire