Skip to content

Instantly share code, notes, and snippets.

@leemcalilly
Created July 30, 2013 01:49

Revisions

  1. leemcalilly created this gist Jul 30, 2013.
    6 changes: 6 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    class Photo < ActiveRecord::Base
    mount_uploader :image, ImageUploader

    validates_presence_of :image

    end