file_column not creating files, just empty tmp directory

Posted by Yanaek on Stack Overflow See other posts from Stack Overflow or by Yanaek
Published on 2010-03-05T12:31:37Z Indexed on 2010/03/08 0:12 UTC
Read the original article Hit count: 367

Up to the end of December 2009 everything worked fine, so i assume that after some upgrades on servers (Ubuntu 8.10 and second Ubuntu 9.10) something stopped working.

Model: class Product < ActiveRecord::Base belongs_to :category file_column :thumbnail, :magick => { :geometry => "150x100>" }

there is of course table 'products' in database, and it has column 'thumbnail'

what's interesting that File actually is uploaded to server, it goes to the /tmp directory under RackMultipartXXXX-0 name, and it is unmodified image.

The problem is, that then this file is not moved to 'tmp' dir under RAILS_ROOT/public/product/ nor the 'XX' (where xx means ID of a product) under public/product also.

i don't know what to do, i spend few HOURS trying different versions of file_column, also trying to make new, test rails application only from scaffold, but then, in this new application problem was the same

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails-plugins