Or perhaps I am stumbling in newbie fashion (tho I have active_merchant
and a store site basically up and running in development mode - still I
don't feel I always understand what is going on.)
So, when I have
send_file(filename, :type => 'application/x-zip')
redirect :action => index
the send_file seems to hang, rather than complete. I'm deducing this
because of errors that happen after the send_file. When I try to
navigate from the page containing 'send_file' to another page, I get an
error with a trace indicating that it has not been able to complete the
If the send_file is followed by a 'redirect :action => index'
the redirect is never executed.
If I comment out the send_file, the redirect is always executed.
What is the problem here? I'm stumped.
Here is the relevant portion of the trace, see the download/redirect
<div id="Full-Trace" style="display: none;">