Forum: Ruby on Rails [file_column] Storing more documents with :magick

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.
eugenol (Guest)
on 2005-12-06 11:31
(Received via mailing list)
Since I unfortunately could not get an answer from the author of this
plugin, maybe some of you may have an issue here on this list.
I wish to keep the :magick argument for file_column. Of course only
images should be resized but using the :magick argument doesn't allow
you to
upload other kind of documents such as pdf files. I assume there is no
type recognition (image and not image - text document, movie, etc.) but
sadly no error is raised when uploading something else but an image.

Here is my model used with the plugin (last week SVN):

require 'file_column'
class Media < ActiveRecord::Base
  file_column :file, :magick => { :versions => { "thumb" => "50x50",
"medium" => "480x360" } }
This topic is locked and can not be replied to.