Quantcast
Channel: Pragmatic Forums | Posts by Bill Gathen
Viewing all articles
Browse latest Browse all 25

Serving pdf files? posted by Bill Gathen @ Sat, 13 Feb 2010 13:00:17 +0000

$
0
0

I want to let a user click a link and download a pdf file, but send_file as follows leaves a stream of garbage in the canvas because FB is trying to render it as fbml:

send_file 'public/my_pdf.pdf', :type => 'application/pdf'

I also tried putting the pdf in the images directory and creating a link using image_path, but that failed as well.

I see Facebooker::Attachment, is that the tool to use?


Viewing all articles
Browse latest Browse all 25

Trending Articles