I have a project I’m trying to decide if I want to use rails for. I’m
to rails, so I’m not sure how easy it would be to implement something
this using ActiveRecord. Here’s the situation:
Category > subcategory > subcategory > product
Category > subcategory > product
Some categories will have many subcategories, others few. I want to use
adjacency lists in the database like
ID CATEGORY PARENT
where top-level categories simply have no parent, but subcategories do.
concern is whether Rails, using ActiveRecord, can be made to understand
this. I’m coming from PHP and know I can code it there. The question
can I do this same thing in Rails, and what will it involve? Does
have any experience that will help?