Displaying 1 result from an estimated 1 matches for "missing_content_typ".
Did you mean:
  missing_content_type
  
2010 Aug 18
0
paper clip plugin validation fails
...t;check  the  srrors are"+@image.errors.inspect
     responds_to_parent { render }
 end
 here is  the model validation
validates_attachment_content_type :picture,
:content_type=>[''image/jpeg'', ''image/png'', ''image/gif''], :message =>
:missing_content_type
                       or
  validates_format_of :picture,:allow_blank=>true, :with =>
%r{\.(gif|jpg|png|jpeg|bmp)$}i,:message  => "Invalid file extension for
teaser image. Please upload files with the following extensions only :
.jpg, .jpeg, .png, .gif, .bmp"
can  anyone  hel...