/gist:95c54a5df4e4ee6518da Secret
Created
July 30, 2013 01:49
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
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