Forum: Ruby on Rails attachement_fu , protected files and displaying images

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
9fa0e9901902a1eb76217f33bd15c4a2?d=identicon&s=25 jochen kaechelin (Guest)
on 2007-07-15 16:37
(Received via mailing list)
I use attachement_fu to store files above the public folder
so that I can protect them. Only authenticated users are able
to download the files. Anything works as expected.

But I still have a problem:

If the uploaded file is a image (content_type = image/jpeg) I want
to display the thumbnail to the public - the big file is still only
downloadable to authenticated users.

image_tag (image.public_filename) does not work because it looks
for the filename under /public/.....

Any help?

Jochen Kaechelin,,
This topic is locked and can not be replied to.