Server pdf from controller

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

Rob B. http://agileconsultingllc.com
[email protected]

thanks

On Sep 13, 4:54 pm, Rob B. [email protected]

This will do it:
http://api.rubyonrails.org/classes/ActionController/Streaming.html#M000091

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.

| Privacy Policy | Terms of Service | Remote Ruby Jobs