我收到一个非常奇怪的错误。 undefined method `delete' for 0:Fixnum
尝试设置行样式时。为什么会这样?
table(headers + Invoice.all.map do |invoice|
[
make_cell(content: invoice.invoice_number),
make_cell(content: format_date(invoice.invoice_date)),
make_cell(content: format_date(invoice.due_date)),
make_cell(content: format_price(invoice.total)),
make_cell(content: format_price(invoice.fees_total)),
make_cell(content: format_price(invoice.actual_total))
]
end, table_options, style(cell(0), padding: [4,2]))