Best way to categorize products in rails 4 app
问题 So, I'm trying to create a product categorization 'system' in my rails 4 app. Here's what I have so far: class Category < ActiveRecord::Base has_many :products, through: :categorizations has_many :categorizations end class Product < ActiveRecord::Base include ActionView::Helpers has_many :categories, through: :categorizations has_many :categorizations end class Categorization < ActiveRecord::Base belongs_to :category belongs_to :product end Also, what gem should I use? (awesome_nested_set,