You need to look at both client side representation and the server side data model. For server side, people have been pointing out solutions here, e.g., acts_as_tree, nested sets etc. Then there is the client side representation of this, which has not been mentioned.
Recently, I did a project (actually, I am still working on it) where both sides are important. I used acts_as_tree to begin with and have moved on to acts_as_adjacency_list since it has a few improvements that I need. For the client side, you have two options: 1. You can either represent the menu trail by a series of linked "breadcrumbs" which show exactly how far deep you are into the hierarchy and allow you to climb-back or drill-down further in the tree. This does not require Javascript and can be done by simple and traditional view coding. 2. For fancier navigation where you actually show the tree visually, you will need Javascript. I am using jQuery based jsTree though there are a number of other alternatives. You will need some Javascript/ jQuery skills though to go down this path. Take a look at the Spree project that uses both quite effectively. Actually, I am learning a lot just digging down into the project code base and adapting it to my own needs - Highly recommended. Hope this helps. Bharat --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

