Instantly share code, notes, and snippets.
ffscalco
/ _breadcrumbs.html.erb
Created
December 10, 2012 18:44
— forked from kstevens715/_breadcrumbs.html.erb
Generates Twitter Bootstrap compatible breadcrumbs with the Crummy gem.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% render_crumbs do |crumbs| %> | |
<ul class="breadcrumb"> | |
<% crumbs.each_with_index do |crumb, index| %> | |
<% if index < crumbs.size - 1 %> | |
<li> | |
<%= link_to *crumb %> | |
<span class="divider">/</span> | |
</li> | |
<% else %> | |
<li class="active"><%= crumb[0] %></li> |
ffscalco
/ _breadcrumbs.html.erb
Created
December 10, 2012 18:44
— forked from kstevens715/_breadcrumbs.html.erb
Generates Twitter Bootstrap compatible breadcrumbs with the Crummy gem.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% render_crumbs do |crumbs| %> | |
<ul class="breadcrumb"> | |
<% crumbs.each_with_index do |crumb, index| %> | |
<li> | |
<% if index < crumbs.size - 1 %> | |
<%= link_to *crumb %> | |
<span class="divider">/</span> | |
<% else %> | |
<li class="active"><%= crumb[0] %></li> | |
<% end %> |