# Yui with rails

**URL:** <https://www.ruby-forum.com/t/yui-with-rails/127137>\
**Category:** Rails\
**Created:** [January 25, 2008, 11:17am UTC](https://www.ruby-forum.com/t/yui-with-rails/127137 "2008-01-25T11:17:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankit2584](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Post date:** [January 25, 2008, 11:17am UTC](https://www.ruby-forum.com/t/yui-with-rails/127137/1 "2008-01-25T11:17:04Z")

</div>

Hi,  
has anyone made a yui tree with real data(datafrom database) in  
rails.  
I have sen sonjoya Tondons part for drag and drop tree  
[http://sonjayatandon.com/08-2006/how-to-add-dragdrop-behavior-to-a-yui-tree/](http://sonjayatandon.com/08-2006/how-to-add-dragdrop-behavior-to-a-yui-tree/)  
but could not find the part where the data is not hardcoded which was  
expected to be the next part of sojya tondon.  
If anyone knows abt it please tell me.

Thanks

---

<div class="post-metadata">

**Author:** ![ankit2584](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Post date:** [January 29, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/yui-with-rails/127137/2 "2008-01-29T19:20:23Z")

</div>

I wrote an article on our [BuildingWebApps.com](http://BuildingWebApps.com) site about my experience  
using the Treeview. I too was inspired by Sonjava Tandon’s article.  
While the implementation I ended up with isn’t completely dynamic, it  
does generate the data at run-time from our database generate the seed  
array of values. Since the size of our tree isn’t huge yet, it wasn’t  
worth dynamically pulling data when nodes were revealed.

Here’s a link to my write-up:  
[http://www.buildingwebapps.com/articles/12-using-yahoo-s-user-interface-library-treeview](http://www.buildingwebapps.com/articles/12-using-yahoo-s-user-interface-library-treeview)

Hope that helps,  
-chris
