M
Mark Mr
HI, I'm currently using the FasterCSV library to pull a bunch of data
from my database and send a .csv file to the user. Currently i start off
with
FasterCSV.open("app/models/" + @assessment.assessment + ".csv", "w") do
|csv|
write all the info to it, then i use
send_file ('app/models/' + @assessment.assessment + '.csv')
to send it. It saves the csv file on the server and then sends that file
to the user. Is there any way to send the csv file without saving it to
the server? Or is there a command i can use to delete the file after it
sends? I couldnt quite find any answers to what I'm trying to do yet.
Thanks alot if anyone has input
from my database and send a .csv file to the user. Currently i start off
with
FasterCSV.open("app/models/" + @assessment.assessment + ".csv", "w") do
|csv|
write all the info to it, then i use
send_file ('app/models/' + @assessment.assessment + '.csv')
to send it. It saves the csv file on the server and then sends that file
to the user. Is there any way to send the csv file without saving it to
the server? Or is there a command i can use to delete the file after it
sends? I couldnt quite find any answers to what I'm trying to do yet.
Thanks alot if anyone has input