Topic: Paperclip create images with the wrong access rights
On my production server (ubuntu, passenger, capistrano), i can add images using paperclip (stored in public), and i can delete them, however when accessing those images with a browser i have a forbidden error.
The user running the ruby process is admin, if i create a file in the public folder logged as admin the access rights are : -rw-r--r--
The folders and images created with paperclip use those rights : drwxr-x---
All of them belong to admin admin
How can i set my rails/apache/paperclip/imagemagick to have the copied files readable by public web browsers ? I'd like to do it the "clean way"
Last edited by Sylario (2011-06-30 09:25:32)