liangwenke/to_xls-rails

undefined method `to_xls'

dan-klasson opened this issue · 1 comments

I have to add .force_encoding("utf-8") to get it to output in utf-8.

@yourcollection.to_a.to_xls as .to_xls seems to be defined on an array only

https://github.com/liangwenke/to_xls-rails/blob/master/lib/to_xls-rails.rb#L3