Skip to content

Instantly share code, notes, and snippets.

View ffscalco's full-sized avatar
:octocat:

Fabiano Fagundes Scalco ffscalco

:octocat:
  • Brisbane, Australia
View GitHub Profile
@ffscalco
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.
<% 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
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.
<% 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 %>