I am new to rails,i want to know how to acess leaf node from root node?

i have all my parent and child in single model,i want access the leaf node by traveling multiple branch node from root node.how to get this done…:slightly_smiling:

Are you using a gem, e.g. https://github.com/amerine/acts_as_tree ?

i am not using gem in my project