Skip to content

Instantly share code, notes, and snippets.

@leemcalilly
Created July 30, 2013 01:49
Show Gist options
  • Save leemcalilly/95c54a5df4e4ee6518da to your computer and use it in GitHub Desktop.
Save leemcalilly/95c54a5df4e4ee6518da to your computer and use it in GitHub Desktop.
class Photo < ActiveRecord::Base
mount_uploader :image, ImageUploader
validates_presence_of :image
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment