Well to display it in the browser you’re going to have to download it
into the browser, at which point it becomes a JavaScript problem. Have
you considered asking on any of the JavaScript mailing lists whether
an appropriate in-browser renderer exists? Or alternately you could
try the various Rails mailing lists as it’s possible someone else has
run into the same problem.
On Jul 23, 2008, at 4:07 PM, Eleanor McHugh wrote:
it will download the file , but i dont want to download the file,
This has nothing to do with JavaScript, but with the disposition
method. By default, files will be delivered as an attachment, what you
want is called “inline”. AFAIK, this can be done via #send_file.
It would be best to ask that question on the Rails mailing list, not
the pure Ruby one.