KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a rails app that allows a user to download a generated CSV file. After the file is downloaded, I'd like to redirect the user to a new URL or action. Is there a trick to do a redirect after a send_data? I want to do something like this (which doesn't work): send_data(output,:type => content_type,:filename => "myfile.csv") redirect_to :controller => 'my_controller', :action => 'download_done'
Tags (comma-separated)
Save Edits
Cancel