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 }
Home Page:https://github.com/igorkasyanchuk
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool