-
-
Save bogdanRada/41345b9a95205d1f15fdf4c71aa43a14 to your computer and use it in GitHub Desktop.
Example of paperclip model validation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| validates_attachment :avatar, presence: true, | |
| content_type: "image/jpeg", | |
| size: { in: 0..10.kilobytes } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment