[Rails] send_data damaging the PDF document

2011-02-01 Thread Tushar Gandhi
Hi, I am uploading a PDF file using paper clip. File get uploaded successfully. If I try to view the file directly from file system it is opening. I have to open the file from application so I have written following code. View Code:- %= link_to 'View Attachment', {:action=show_attachment,

Re: [Rails] send_data damaging the PDF document

2011-02-01 Thread Peter De Berdt
On 01 Feb 2011, at 14:41, Tushar Gandhi wrote: I am uploading a PDF file using paper clip. File get uploaded successfully. If I try to view the file directly from file system it is opening. I have to open the file from application so I have written following code. View Code:- %= link_to