Marnen Laibow-Koser wrote: > Emmek on Rails wrote: >> I have a model Page in my application that acts_as_tree. I want this >> model to keep whole structure of website. > > Then I would strongly suggest awesome_nested_set instead of > acts_as_tree. It makes it possible to use the DB *much* more > efficiently.
Actually, on second thought, this might be a good use case for a materialized path in the DB. Then you could just do find_by_path to retrieve any page at any depth. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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 [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 -~----------~----~----~----~------~----~------~--~---

