jochen kaechelin
2007-Jul-15 14:37 UTC
attachement_fu , protected files and displaying images
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 gissmoh.de, figgfrosch.de, ror-ror.de --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---