Forum: Ruby on Rails RE: File Column

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
60e38de043848f82392062088f191213?d=identicon&s=25 Hogan, Brian P. (Guest)
on 2006-02-24 16:49
(Received via mailing list)
Use a different model for the zip file
OR
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.