Justin MacCarthy
2007-Oct-03 17:51 UTC
[Betternestedset-talk] What is the best why to get the fullpath back to the root
Newbie, Doing a site map type structure, as I''m sure many of you have too .. Need breadcrumbs and to do lookups on a node by full path e.g (home)/about_us/our_mission and Home / About us / Our mission for example (assuming Home is the label attribute, of a model Menu) Also anyone caching entire menus in a instance var ? Any advice? Thanks Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/betternestedset-talk/attachments/20071003/1c4ba3c2/attachment-0001.html
Krishna Dole
2007-Oct-03 18:32 UTC
[Betternestedset-talk] What is the best why to get the fullpath back to the root
Hey Justin-- model.ancestors will give the path back to the root. Krishna On 10/3/07, Justin MacCarthy <justin at maccarthy.org> wrote:> Newbie, > > Doing a site map type structure, as I''m sure many of you have too .. > > Need breadcrumbs and to do lookups on a node by full path e.g > > > (home)/about_us/our_mission > > and > > Home / About us / Our mission > > for example (assuming Home is the label attribute, of a model Menu) > > Also anyone caching entire menus in a instance var ? Any advice? > > > > Thanks Justin > > _______________________________________________ > Betternestedset-talk mailing list > Betternestedset-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/betternestedset-talk > >