+1 to tommasop
. , , , xml, html json, . Heroku , .
book.write '/somepath..'
def xls
.. your stuff ..
blob = StringIO.new("")
book.write blob
blob.string
end
do
send_data @customer.xls, :type => :xls, :filename => @customer.xls_file_name
mime . . , rails 2.3.10. , 3.
Mime::Type.register "application/vnd.ms-excel", :xls