Hello, I have a model like this : class Biblio::BibliothequeContent < ActiveRecord::Base has_many :bibliotheque_content_types has_many :bibliotheque_dossier_contents file_column :nom_fichier,:store_dir => "public/files/",:magick => { :versions => { "thumb" => "50x50","mini" => "200x200", "medium" => "640x480>" }} end I just want to use he :magick option only if the uploaded file is in jpg or gif format. Maybe a solution with a specific validation ? Thx -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---