Category Archives: breadcrumb
Leave a comment | tags: before_filter, breadcrumbs, filters, gettext, i18n, internationalization, l10n, localization, ruby on rails | posted in before_filter, breadcrumb, filters, gettext, i18n, internationalization, l10n, localization, ruby on rails
Most projects I work on require some implementation of breadcrumbs. Unfortunately most solutions that I found take the very simplistic approach: they split the URL and present each part as a link. I really have a hard time imagining that this can be sufficient for any non-trivial app.
I also found session-based implementation, but according to the above mentioned Wikipedia article classification these are path-style breadcrumbs, while I need location-style with a little bit of attribute-style mixed in where needed. That is, the breadcrumbs should normally reflect the page’s location in some (virtual) website hierarchy. Sometimes, while browsing things that are naturally hierarchical (like forum threads/posts, category trees and so on), the breadcrumb trail should also reflect this hierarchy. Read on to see my take on this problem.
Looking for an easy way to manage agile project?
- Hash bars - simple ASCII-art charts in your console, database or Excel
- Easy and flexible breadcrumbs for Rails
- TextMate shortcuts you should be using
- The simplest way to set-up a "we'll be back shortly" page
- Cookie handling in multi-domain applications in Ruby on Rails
- Self-referential many-to-many relations in Ruby on Rails
- A simple shuffle that proved not so simple after all
- Using assert's message to boost your unit testing productivity
- Way beyond cool: autotest + growl + Doomguy
- Multilingual page caching in Ruby on Rails
- 257,266 hits