Active_storage_validations
08-Oct-2022 1180
If you are using active_storage gem and you want to add simple validations for it, like presence or content_type you need to write a custom validation method.This gems doing it for you. Just use attached: true or content_type: 'image/png' validation.
Active_storage_validations #ruby #rubydeveloper #rubyonrails #Active_storage_validations #active_storage_validations https://rubyonrails.ba/link/active_storage_validations