I took out the disposition, same thing happens.
Changed stream to false, same thing.
Took out the stream altogether, no change. Being
ableto download something seems such an obvious
simple tohing to be able to do, and I’m getting stuck
now. And I don’t know where to look.
sendfile is a CGI method and the probability is high that the problem
having is an environment config problem, not an application code
As such, you’ll probably do better to seek help on the rails-deploy
In preparation for that, here’s what I’d do.
First, you need to demonstrate conclusively that it’s not an application
To do that, generate a sandbox app. No table. No model. Generate a
controller called ‘demo’ or something simple. In the controller code a
series of methods, each of which invokes send_file on a pre-existing
with a slightly different set of arguments to demonstrate the things
tried above. I’d probably use two files; one text and one binary, and
a method in the controller for each for each set of arguments. Then
hand-code a view named ‘index.rhtml’. In the view, put that has a
'button_to" for each method in your demo controller. Associated with
button, put the text of the send_file command that gets invoked when
If I understood you earlier, you have both a development and a
setup. If that’s the case, put your sandbox app on the production
where folks can access it and then send an SOS to rails-deploy.
I know how frustrating this can be. I had a similar problem on my VPS a
little while back. It was serving PDF files for local saves just fine.
to bed. Got up. It was serving the instructions / code inside the PDF
the browser. The hosting folks got it straightened out.
Sorry I can’t be more help than this. Good luck.