How can I make this MVC?
我怎样才能制作这个MVC?
class Product < ActiveRecord::Base
validates :price, :presence => true
def to_s
"#{name} at #{number_to_currency(price)}"
end
end
clHow can I make this MVC?
我怎样才能制作这个MVC?
class Product < ActiveRecord::Base
validates :price, :presence => true
def to_s
"#{name} at #{number_to_currency(price)}"
end
end
cl