cxn03651/writeexcel — Issue #16: NoMethodError
Author: ExReanimator
Created: 2011-11-30 19:23:30+00:00
State: open

I've got a NoMethodError in controller:

undefined method `write' for #

Action:

workbook = WriteExcel.new(path)
xls = workbook.add_worksheet
row = 1
orders.each do |c|
xls.write(row, 0, c.id.to_s)
xls.write(row, 1, c.code.to_s)
row += 1
end
workbook.close