Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3051592278
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.188 kb
class Product < ActiveRecord::Base
with_options :presence => true do |f|
f.validates :name
f.validates :description
f.validates :price
end
def to_s
name
end
end
Jump to Line
Something went wrong with that request. Please try again.