ruport

Ruport - undefined method `each' for “”:String

≡放荡痞女 提交于 2019-12-11 08:56:59
问题 I am following the first example in this tutorial: http://ruportbook.com/printable_documents.html, but I'm getting undefined method `each' for "":String all the time, I created a new file with this code: class MultiTableController < Ruport::Controller stage :multi_table_report class PDF < Ruport::Formatter::PDF renders :pdf, :for => MultiTableController build :multi_table_report do data.each { |table| pad(10) { draw_table(table) } } render_pdf end end end Then, in an existing controller named