← Back to Discover
igorkasyanchuk

igorkasyanchuk/active_storage_validations

RubyMITactive
88Health

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 }

Stars1.2k
Forks148
Open Issues22
Contributors148
Last Push3d ago

Health Breakdown

Activity
24
Community
25
Maintenance
14
Popularity
25
#active-storage#activestorage#rails#validations
View on GitHub ↗Issues (22) ↗Pull Requests ↗

Community

igorkasyanchuk88

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 }

active
1.2k148 contributors3d ago

More Ruby repos

omniauth
omniauth/omniauth-ldap
📁 LDAP strategy for OmniAuth
14899
Homebrew
Homebrew/homebrew-core
🍻 Default formulae for the missing package manager for macOS (or Linux)
15.3k98
exercism
exercism/ruby
Exercism exercises in Ruby.
59797