<% count = 1; @crumbs.each do |pair| %> <% clazz = (pair == @crumbs.last ? "selected" : "" )%> <%=pair.first%> <% if count < @crumbs.size %>»<%end%> <% count +=1; end %>