Hi, I have managed to create a table that includes many nested sets. I have a problem with it though. I can retrieve one set by getting its root element and then do something like:
@attributes = root_attribute.self_and_descendants However, when I put the following in my views to be able to descend into the model: <% @attributes.root.children.each do |attribute| %> ... <% end %> It will generate a new query for the root element as well as every child it handles. That's not what I want. The reason why I was told to use "awesome nested set" is because I can retrieve my entire nested set in one single query and proceed from there. I have certain sets that will generate over 100 queries this way, that's not pretty! Can anyone tell me what I'm doing wrong? --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

