Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (6 sloc) 289 Bytes
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.