Hi,
I want to serve a pdf from my controller. I have the file system path to the PDF how can I do this?
Hi,
I want to serve a pdf from my controller. I have the file system path to the PDF how can I do this?
This will do it: http://api.rubyonrails.org/classes/ActionController/Streaming.html#M000091
eggie5 wrote:
See the rails docs for send_file
http://api.rubyonrails.org/classes/ActionController/Streaming.html#M000091
-Rob
Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com
thanks