I saw this article which gives a simple example on how to export data into Excel sheet without using any gem in Rails:
https://makandracards.com/makandra/31567-exporting-to-excel-from-rails-without-a-gem
I believe the above article is based on a RailsCast tutorial on the same topic:
http://railscasts.com/episodes/362-exporting-csv-and-excel?view=asciicast
I would like to know how to include background colors and row borders (and also border colors) please. Please help!