3 ms·
Navigational breadcrumbs in Rails
- richcollins 16y agoThe real gains in terseness come when you recognize that the entire navigation for your site can be generated from table relations.
- sunkencity 16y agoIsn't it easier to just build up breadcrumbs from a nested structure that represents your menu and just walk backwards from the current element? I've got a simple little rails plug that builds meny, submenu and breadcrumbs from a yaml file and can handle privileges/visibility. http://github.com/sunkencity/joels_menu http://github.com/sunkencity/joels_menu
- cmelbye 16y agoVery nice Rails-like solution! I'm looking into breadcrumbs for my app, but unfortunately I haven't been completely good about nesting my resources.