I have a quick question about tree type structures in Rails. In my case, my model has a "parent_id" column, linking leaves to branches.
There's a lovely gem called "acts_as_tree" (https://github.com/rails/acts_as_tree) originally written by DHH which appears to be a little unloved. Someone else has picked up this project and kept it up to date (https://github.com/amerine/acts_as_tree) which is excellent.
However, this gem is missing some features such as depth and nodes_within counts. These features were added to a branch of DHH's original gem at: https://github.com/c...ts_as_sane_tree. Unfortunately this acts_as_sane_tree gem hasn't been touched for two years, and blows up with a deprecation error in Rails 4.
My questions to you guys are:
Is there a better or more up-to-date gem out there?
Is there an awesome/better way to manage these nested/tree structures?
What experiences or tips do you have regarding this kind of operation?