RubyFlow The Ruby and Rails community linklog

New validation option was added for active_storage_validations gem

with https://github.com/igorkasyanchuk/active_storage_validations now you can do:

validates :photos, dimension: { width: { min: 800, max: 2400 }, height: { min: 600, max: 1800 } }

thanks to contributors!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in