What is the best method in Rails to create a self-referenced category?

0

I would like a tip to create a self-referenced category where it would be possible to add daughter categories of its own and so suspectly for the purpose of building a tree using the same object.

Is there a gem or an easy and well-optimized way to do this?

    
asked by anonymous 05.02.2014 / 14:22

1 answer

2

You can see this gem ancestry

How do you want a template that is self-referencing, more specifically for category and since it is to build a tree. The gem ancestry has already been made for this type of case.

    
05.02.2014 / 15:19