product.rb
product.rb
class Product < ActiveRecord::Base
attr_accessible :description, :name
has_many :categorizations
has_many :categories, :through => :categorizations
validates :name, uniqueness: true
end
class Product < Activproduct.rb
product.rb
class Product < ActiveRecord::Base
attr_accessible :description, :name
has_many :categorizations
has_many :categories, :through => :categorizations
validates :name, uniqueness: true
end
class Product < Activ