Re: [Rails] how-to display an image living outside the public directory

2010-05-03 Thread Vladimir Rybas
You could have PrivateImagesController with `show` method and you will get your images through /private_images/image_name.png in `show` method (check permissions) send_file "#{RAILS_ROOT}/private_images_folder/#{params[:image_name]}" send_file is really slow and will work only when the

[Rails] how-to display an image living outside the public directory

2010-05-03 Thread bill walton
I'm trying to display an image (chart) that lives outside the public directory in RAILS_ROOT/private. The chart contains confidential information and so can't live in /public or any sub-directories of /public. The chart needs to be displayed from a partial. The first display of the page contai