Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c79d924050
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (6 sloc) 0.289 kB
class Sample < ActiveRecord::Base
has_attached_file :screenshot, :styles => {:large => "500x500>", :medium => "300x300>", :thumb => "100x100>" }
attr_accessible :description, :name, :screenshot, :demo, :category_id
belongs_to :category
has_many :comments, :as => :commentable
end
Jump to Line
Something went wrong with that request. Please try again.