simple bread crumbs in ruby on rails
was posted on 09 Aug 07 at 3:55pm. it has been filed under code, ruby/rails and tagged with breadcrumbs, code, rails, ruby.
so far it has been commented on 3 times, you can add your own if you like. you can also ping the trackback url if you want, i don't mind.
related posts
archives
categories
below is a simple implementation of bread-crumbs for use in ruby on rails, you can pass in the level separator as the first argument and a boolean to indicate inclusion of home link.
it relies on the requested path to work out how to split the breadcrumbs, it alsoo requires that every component of your path is accessable, should be a good starting block though.
3 comments
add your own
Hey..
I was looking for breadcrumbs for a while in RoR, I haven’t tried your script. Can i know where i should insert this script in my code.
@naresh
you’d wanna put it in a helper, prolly your application helper to use it globally.
Brilliant in combination with the rails url-hack for pretty urls.
2 pings