Javascript Tree on Ruby Model

Hello everybody,

I want to build a javascript tree out of my ruby class structure
(without database). Does anybody know a rails plugin or something
similar?

Thank you.