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

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.
E6dcb4743b83392a4fc39693f110cc26?d=identicon&s=25 eugenol (Guest)
on 2005-12-06 10:31
(Received via mailing list)
Since I unfortunately could not get an answer from the author of this
great
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
uploaded
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
meta
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" } }
end
This topic is locked and can not be replied to.