Showing Images from a file store

Hi all.
I am wrting a small content management tool for my company and was
trying to display some images from our file store shown below.

The app was displaying the image when it is under the \public\images directory. Is there anything special we need to do to get a file from outside the root of the application?

Any help appreciated.

Thanks
Silvy Mathews

send_file ‘/path/to.jpeg’, :type => ‘image/jpeg’, :disposition =>
‘inline’

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