Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question