From: Eleanor McHugh Date: 2008-07-23T23:07:47+09:00 Subject: Re: read document in browser itself On 23 Jul 2008, at 12:26, Sujith Gangaraju wrote: > Thorsten Mueller wrote: >> link_to("whatever", "/docs/file.doc") >> >> if file.doc is in a folder named docs in the public folder >> >> what exactly happens in the browser would depend on the users >> settings. >> most likely the browser would ask him to save it > > it will download the file , but i dont want to download the file, > i just want to read the file in browser itself > > pls any body reply soon pls 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. Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason