I need to generate Excel documents with Ruby (from Rails) on a Linux machine. I know of Spreadsheet::Excel, but it doesn\'t support formulas, and uses a pretty old format.>
I have come across the gem simple_xlsx_writer.
You can see the example of how to use it over here.
Hope it helps.