I\'m using paperclip in a rails app and have the following three validations in my model
validates_attachment_presence :photo
validates_a
validates_attachment_size :photo, :less_than => 1.megabyte,
:unless => Proc.new { |imports| imports.photo_file_name.blank? }
I think you can do it other way. Don't mess with validations. You probably have something like this in your form:
<%= f.error_messages %>
You can remove it and write your own helper to display error messages. Errors are stored in hash:
@photo.errors
Or if you want to get to them through form builder:
f.object.errors