liangwenke/to_xls-rails

header attribute doesn't working

kalashnikovisme opened this issue · 2 comments

I have this:

format.xls { send_data @users.to_xls(header: :false, only: [:first_name, :last_name]) }

but header in .xls file exists...Have I done something wrong?

scr

@kalashnikovisme The setting you used for :header is a Symbol, not a Boolean. Try using false, not :false.