# TreeView Control

**URL:** <https://www.ruby-forum.com/t/treeview-control/118568>\
**Category:** Rails\
**Created:** [October 29, 2007, 12:33am UTC](https://www.ruby-forum.com/t/treeview-control/118568 "2007-10-29T00:33:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 29, 2007, 12:33am UTC](https://www.ruby-forum.com/t/treeview-control/118568/1 "2007-10-29T00:33:37Z")

</div>

I am just learning RubyRails…

I am simply trying to add a tree view control. I want to use the YUI  
treeview control.

Here is my code

\<% for tax in @taxonomies%\>  
\<%=tax.parent-%\> \<%=tax.description-%\>   
  
  
\<% end %\>

I have a javascript that will add a node. My question is…how do I  
pass the data I get from the ruby database loop  
to the javascript?
