Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. has_attached_file :image,
  2. :styles => {original: '500x500#'}
  3. validates_attachment_content_type :image, content_type: /\Aimage\/.*\Z/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement