Last active
June 27, 2017 17:49
-
-
Save nearbycoder/1cf09dd05025394b008cc0e9857bdc5c to your computer and use it in GitHub Desktop.
This file contains 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
has_attached_file :image, | |
:styles => {original: '500x500#'} | |
validates_attachment_content_type :image, content_type: /\Aimage\/.*\Z/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment