Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

7 lines (5 sloc) 0.186 kb
class Image < ActiveRecord::Base
attr_accessible :file
has_attached_file :file, :styles => { :medium => "300x300>", :thumb => "100x100>" }
validates_attachment_presence :file
end
Jump to Line
Something went wrong with that request. Please try again.