2009/6/18 Dharmdip Rathod <[email protected]>:
>
> Thanks Colin ,
>
> But when i choose this option pdf file opens in pdf viewer application ,
> but it does not open in browser it opens like desktop application and
> when i try to open it with firefox , it gives following error !
>
>  C:\DOCUME~1\hb56\LOCALS~1\Temp\1_product-2.pdf could not be opened,
> because an   unknown error occurred.
> Try saving to disk first and then opening the file.

Firstly you have not posted the html for the link.

However I think the above message means that it has downloaded and
saved the file to the temp folder shown and then tried to open it, and
failed. Possibly it is corrupted.  I would suggest going and having a
look at that file (in temp folder) and see if it is ok.  Alternatively
(or also) in your web page right click the link and select Save Link
As (or similar), download it and see if you can open it.  I presume
you have checked that the pdf file in your public folder will open ok
if you access it directly rather than through the web server.  Is the
file on your pc or on a remote server?

Colin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to