search for: our_data

Displaying 1 result from an estimated 1 matches for "our_data".

Did you mean: your_data
2006 Oct 25
7
Sending a file *and* rendering a page
Anyone know how to send a file/data to the user agent (download it) using #send_file or #send_data, *and* render a new page in the same action? This just sends the file and doesn''t render the page: def gimme ... send_data(our_data, :filename => ''output.csv'', :disposition => ''attachment'') end And this will give a Double-Render error: def gimme ... send_data(our_data, :filename => ''output.csv'', :disposition => ''attachment'') re...