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
igorkasyanchuk
Maintainer
1.2k stars
Go to website ↗View on GitHub
active_storage_validations repository preview
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_validations
Languages
Ruby100%
Last updated2 months ago
LicenseMIT
More Ruby on Rails projects
R
Made with Ruby on Rails
RSSLLMmadewithwhat

Ask MadeWithWhat

AI answers may contain mistakes — please double-check important details.