dimanche 20 novembre 2016

Prawn draw 2 table side by side

I have a table made up of many cells, and in one cell i want to draw a two table side by side,

and i'm using prawn ruby gem

Ex

cell_1 = make_cell(:content => "this row content comes directly ", height: 62.5.mm, size: 6)
cell_2 = make_cell(:content => "this row content comes directly ", height: 62.5.mm, size: 6)
cell_3 = make_cell(:content => "this row content comes directly ", height: 62.5.mm, size: 6)
t = make_table([[cell_1],[cell2], [cell3])
t.draw

i tried like using

t1 = make_table([[cell_1],[cell2], [cell3])
t1.draw

But it comes below the first table, how do i make it side by side

Aucun commentaire:

Enregistrer un commentaire