yui with rails

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/
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

I wrote an article on our 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

Hope that helps,
-chris