# Parent listing children

**URL:** <https://www.ruby-forum.com/t/parent-listing-children/62393>\
**Category:** Ruby\
**Created:** [June 3, 2006, 11:30pm UTC](https://www.ruby-forum.com/t/parent-listing-children/62393 "2006-06-03T23:30:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@adrian](https://www.ruby-forum.com/u/adrian)\
**Post date:** [June 3, 2006, 11:30pm UTC](https://www.ruby-forum.com/t/parent-listing-children/62393/1 "2006-06-03T23:30:31Z")

</div>

My database is set up as Categories \> Things associated by category\_id  
and has\_many and belongs to.

How would I go about listing all the categories and under each Category  
is it’s children? Is there an easy rails way to do this? Any help is  
appreciated - thanks!
