Answer the question
In order to leave comments, you need to log in
How to define encoding in Rails when generating xls file?
I link like this:
<%= link_to 'Скачать excel', exportsub_path(format: "xls") %>
@subscribers = Subscriber.where(user_id: session[:user_id])
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