You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Gem is great. i'm using it for a front end form which is perfect.
I'm also using it for the Admin part of my App using activeadmin gem.
I get validation error message in ActiveAdmin but it saves the file and ignores the validations
validates :images, content_type: ['image/png', 'image/jpg', 'image/jpeg'], limit: { min: 1, max: 2, message: 'You are allowed a maximum of 2 attachments' }, size: { less_than: 200.kilobytes , message: 'The attachment(s) must be less than 200kb' }
Would be great if you could give some pointers. Really stuck :-(
This is a similar issue with another gem
This Gem is great. i'm using it for a front end form which is perfect.
I'm also using it for the Admin part of my App using activeadmin gem.
I get validation error message in ActiveAdmin but it saves the file and ignores the validations
validates :images, content_type: ['image/png', 'image/jpg', 'image/jpeg'], limit: { min: 1, max: 2, message: 'You are allowed a maximum of 2 attachments' }, size: { less_than: 200.kilobytes , message: 'The attachment(s) must be less than 200kb' }
Would be great if you could give some pointers. Really stuck :-(
This is a similar issue with another gem
aki77/activestorage-validator#1
Thank you
The text was updated successfully, but these errors were encountered: