Hey All, I''m trying to put a messaging system together using this http://www.novawave.net/public/rails_messaging_tutorial.html. All working fine but I''d like to be to thread the replies. At the moment, a message goes out, someone replies to it and the original is simply included in the reply. I''d like to be able to thread the replies using acts_as_tree or something but I can''t get my head round where to start... I had a long week end thinking about it and no luck... anyone to help? My code so far is the nearly the same as the one in the tutorial but I have acts as tree in the message_copy model, I just don''t know where I''m suppose to deal with the parent_id thingy... Please help :( Oli -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jun 23, 5:14 am, Olivier Bon <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> All working fine but I''d like to be to thread the replies.You might want to look into the BetterNestedSet plugin: http://agilewebdevelopment.com/plugins/betternestedset --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''ll give that a go, than kyou for your reply :) Matt Darby wrote:> On Jun 23, 5:14�am, Olivier Bon <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> All working fine but I''d like to be to thread the replies. > > You might want to look into the BetterNestedSet plugin: > http://agilewebdevelopment.com/plugins/betternestedset-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---