Answer the question
In order to leave comments, you need to log in
Ruby on Rails error when unloading excel when there is a lot of data, what's the problem?
The data in the controller is:
headers['Content-Type'] = "application/vnd.ms-excel; charset=windows-1251"
headers['Content-Disposition'] = 'attachment; filename="report.xls"'
headers['Cache-Control'] = ''
respond_to do |format|
format.html
format.xls
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question