I'm following this tutorial to create a pdf file using prawn gem, and I found this reference documentation to generate a table.
How do I set the header row and the header titles to each column?
invoiceData = [["foo","bar"]]
pdf.table(invoiceData) do |table|
table.rows(1..3).width = 72
end