B
B
BuzzyMan2017-03-15 22:34:18
Ruby on Rails
BuzzyMan, 2017-03-15 22:34:18

Does Ruby on Rails have a django-mptt equivalent or similar module for working with trees?

I recently started getting acquainted with Ruby on Rails, and there was a need for a module for working with hierarchical data. For Django, there is a wonderful package for working with trees - django-mptt , very convenient and functional. Looking for something similar for RoR.

  • Sample of all ancestors
  • Selecting all descendants
  • Sample of direct descendants
  • Root sampling
  • Selection of neighboring branches

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Demidenko, 2017-03-15
@Dem1

Look at ancestry or closure_tree

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question