In my rails app, I can download data as csv file.
This is my current code
response_to do |format|
format.csv {send_data #MY_DATA#}
end
Instead of this code, I want to save the csv file on server.
How can I generate csv file and save the file on the server
Thanks