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?
On Sep 13, 2007, at 7:51 PM, eggie5 wrote:
Hi,
I want to serve a pdf from my controller. I have the file system path
to the PDF how can I do this?
See the rails docs for send_file
http://api.rubyonrails.org/classes/ActionController/
Streaming.html#M000091
-Rob
This will do it:
eggie5 wrote:
Hi,
I want to serve a pdf from my controller. I have the file system path
to the PDF how can I do this?
–
Sincerely,
William P.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs