RoR file_column problem

software development


I’m trying to use the excellent file_column to upload some pictures to my site but I can’t get it to work properly.

Uploading works but the uploaded files have the wrong permission (600) so I can’t show them without manually changing the permission.

Another problem is with file_column in combination with magick.

I have a model like this:

class Note < ActiveRecord::Base
file_column :image, :magick => { :versions => { “thumb” => “100x100”, “medium” => “640x480>” }}

Now, If I understand correctly, this would result in directories like: ‘public/note/image/26/thumb/’ and ‘public/note/image/26/medium/’ containing the images. However, instead of the ‘thumb’ and ‘medium’ directory I get directories with weird names, like ‘2489u2’ and ‘fcfwrb’

Has anyone succesfully used file_column with Dreamhost?