# Mapping a directory into a database table

**URL:** <https://www.ruby-forum.com/t/mapping-a-directory-into-a-database-table/160016>\
**Category:** Rails\
**Created:** [February 10, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/mapping-a-directory-into-a-database-table/160016 "2009-02-10T23:42:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elioncho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ed8c4c/32.png) [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Post date:** [February 10, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/mapping-a-directory-into-a-database-table/160016/1 "2009-02-10T23:42:33Z")

</div>

Guys I am trying to display a series of directories located on the  
server in a tree view. I have seen some solutions for displaying a  
tree view based on data on a database but I need to first map my  
directory into the database. How can I do this? Also, I want to take  
the opportunity to ask if what component to use to display the tree?  
(YUI treeview component?)

Thanks,

Elías
