E
E
eldar_web2018-02-27 10:13:50
Ruby on Rails
eldar_web, 2018-02-27 10:13:50

How to output all child elements up to the last level in the ancestry gem in Rails?

Installed gem ancestry.
Here the child_ids command prints only the children of the first level.
How to display all levels?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Demidenko, 2018-02-27
@eldar_web

Isn't it possible to read the documentation?

descendant_ids Returns a list of a descendant ids

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question