Monday, May 3, 2010

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

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 containing the partial is an html render. Subsequently, the
user can select a different chart causing an ajax call which replaces
the content of the image-containing dom element in the partial with a
new chart image.

Any thoughts / pointers are much appreciated!

Best regards,
Bill

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment