Hi, I am a newbie, i wanna know how to implement database driven Tree structures in RoR? Is there any direct support available or should they be implemented in Javascript ? Any tutorial link if provided will be of good help Thanks in advance Sathya -- Posted via http://www.ruby-forum.com/.
acts_as_tree http://api.rubyonrails.org/classes/ActiveRecord/Acts/Tree/ClassMethods.html#M000566 -Jonathan. On 8/8/06, Sathya <sathya.kishore@lgcnsglobal.com> wrote:> Hi, > > I am a newbie, i wanna know how to implement database driven Tree > structures in RoR? Is there any direct support available or should they > be implemented in Javascript ? > > Any tutorial link if provided will be of good help > > Thanks in advance > > Sathya > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
There is no support for client side javascript trees which display acts_as_tree data. However there are widgets from dojo tool kit http://dojotoolkit.org/ which you can use in your views to show the data. There are demos and example source code on the dojo site. Shouldn''t be too hard to drop them in to the rails views. -bakki On 8/8/06, Sathya <sathya.kishore@lgcnsglobal.com> wrote:> Hi, > > I am a newbie, i wanna know how to implement database driven Tree > structures in RoR? Is there any direct support available or should they > be implemented in Javascript ? > > Any tutorial link if provided will be of good help > > Thanks in advance > > Sathya > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >