Forum: Ruby on Rails 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.
Alexander (Guest)
on 2006-02-24 15: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>" }
This topic is locked and can not be replied to.