I have a model attached with a paper clip named avatar, the model uses validates_attachment_presence to ensure the presence of the avatar. simple_form did not seem to select this and display a form with an asterisk to indicate that an avatar is required. I added an additional validates_presence_of file: avatar and simple_form, and now it will not add an error class when the user does not select an avatar. Has anyone got simple_form working with paperclip apps?
The solution is to add a presence check as well as attachment_presence:
validates :avatar, attachment_presence: true, presence: true
.