Our great sponsors
-
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 }
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
You can use the gem https://github.com/igorkasyanchuk/active_storage_validations. I've made a video on how to use it, you can check it here: https://www.youtube.com/watch?v=woEgyQ8I7RA Hope it helps!
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
-
nilify_blanks alternatives - auto_strip_attributes and attribute_normalizer
3 projects | 6 Jun 2023
- Resize images before uploading them with Ruby on Rails Active Storage
-
solid_queue alternatives - Sidekiq and good_job
3 projects | 21 Apr 2024
- Ruby on Rails: Native route constraint for authentication
- What makes concurrency so hard?