Forum: Ruby on Rails 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.
9acb6dd7bd59496bd005c4434a3dd475?d=identicon&s=25 Alexander (Guest)
on 2006-02-24 14:40
Has anyone any experiance with the FileColumn plugin. I'm trying to
create thumbnails, and also alow non picture uploads. Here's some
working code, but if I try and upload a zip, it says 'File invalid
image'. Is there anyway of having both image uploads (and thumbnail
generation) while also allowing non image uploads?

class Entry < ActiveRecord::Base
  validates_presence_of   :name, :file
  validates_uniqueness_of :name
file_column :file, :magick => {
          :versions => { "thumb" => "50x50", "medium" => "640x480>" }
        }
end
This topic is locked and can not be replied to.