Forum: Ruby on Rails RE: File Column

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.
Hogan, Brian P. (Guest)
on 2006-02-24 17:49
(Received via mailing list)
Use a different model for the zip file
Use a different column for the zip file.

file_column :file, :magick => {
          :versions => { "thumb" => "50x50", "medium" => "640x480>" }

That basically says that you will resize that file, no matter what type
it is. So you'll need to use a different column or model.

Or you could catch the exception thrown and ignore it :) *HACK*
This topic is locked and can not be replied to.