When using the example app from Ryan Bates\' Railscasts Episode #362 about exporting to Excel (https://github.com/railscasts/362-exporting-csv-and-excel), I\'ve noticed that
In fact, the code generated:
ID Name Release Date Price <% @products.each do |product| %> <%= product.id %> <%= product.name %> <%= product.released_on %> <%= product.price %> <% end %>
is XML (XLS is a binary format, XLST a zipped format)
Renaming the file to .xml should work