Skip to content

Instantly share code, notes, and snippets.

@fukajun
Last active August 29, 2015 14:01
Show Gist options
  • Save fukajun/d55a23d83e1a711f9b7f to your computer and use it in GitHub Desktop.
Save fukajun/d55a23d83e1a711f9b7f to your computer and use it in GitHub Desktop.
Gretel
crumb :oya do |oya|
link "Oya", oya_path(oya)
end
crumb :kodomo do |kodomo|
link "Kodomo", kodomo_path(kodomo)
parent :oya, kodomo.oya
end
crumb :mago do |mago|
link "Mago", mago_path(mago)
parent :kodomo, mago.kodomo
end
crumb :mago_brother do |mago_brother|
link "MagoBrother", mago_brother_path(mago_brother)
parent :kodomo, mago_brother.kodomo
end
- breadcrumb :mago, @mago
= breadcrumbs pretext: "You are here: ", separator: " › "
- breadcrumb :mago_brother, @mago_brother
= breadcrumbs pretext: "You are here: ", separator: " › "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment