113 Forks
860 Stars
860 Watchers

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 }

How to download and setup active_storage_validations

Open terminal and run command
git clone https://github.com/igorkasyanchuk/active_storage_validations.git
git clone is used to create a copy or clone of active_storage_validations repositories. You pass git clone a repository URL.
it supports a few different network protocols and corresponding URL formats.

Also you may download zip file with active_storage_validations https://github.com/igorkasyanchuk/active_storage_validations/archive/master.zip

Or simply clone active_storage_validations with SSH
[email protected]:igorkasyanchuk/active_storage_validations.git

If you have some problems with active_storage_validations

You may open issue on active_storage_validations support forum (system) here: https://github.com/igorkasyanchuk/active_storage_validations/issues

Similar to active_storage_validations repositories

Here you may see active_storage_validations alternatives and analogs

 rails    discourse    gitlabhq    devise    diaspora    spree    activeadmin    kaminari    simple_form    factory_bot    classroom    textbook-curriculum    github-ds    diplomat    awesome-opensource-apps    acts_as_api    browserify-rails    mumuki-laboratory    react-rails    brakeman    octicons    mailcatcher    cancancan    administrate    refinerycms    simplecov    webpacker    suspenders    buffalo    graphql-ruby