I’m not sure this is even possible, but has anyone used Ajax
in a Rails environment to download a file from a Rails
I’d like to have a view rendered that says “now downloading
your file foo.baz”, waits a second or two then automatically
calls a controller action that uses the send_file() function
to return the file contents.
Hopefully the browser would do the right thing with the bytes
coming back and save them as “foo.baz” and not try to inject
them into a page div?
Any advice much appreciated,