How can I verify a paperclip attachment does not exist if another field does exist? I tried:
validates_attachment :img, presence: false, if: :some_other_field?
def some_other_field?
some_other_field
end
How can I verify a paperclip attachment does not exist if another field does exist? I tried:
validates_attachment :img, presence: false, if: :some_other_field?
def some_other_field?
some_other_field
end
Similar problem here, my solution was to make the comparison in the def