Back to gallery
DevTools
active_storage_validations
Do it like => validates:photos, attached: true, content_type: ['image/png', 'image/jpg', 'image/jpeg'], size: { less_than: 500.kilobytes }, limit: { min: 1, max: 3 }, aspect_ratio::landscape, dimension: { width: { in: 800..1600 }
igorkasyanchuk
Maintainer
1.2k stars
About this project
Do it like => validates:photos, attached: true, content_type: ['image/png', 'image/jpg', 'image/jpeg'], size: { less_than: 500.kilobytes }, limit: { min: 1, max: 3 }, aspect_ratio::landscape, dimension: { width: { in: 800..1600 }. Maintained by igorkasyanchuk on GitHub, where it has earned 1,179 stars from the community.
It's actively developed around active-storage, activestorage, rails, and is a solid reference for anyone building with these tools.
Tags
Install
npm install active_storage_validationsMore Ruby on Rails projects