From 3184c235b83e84c798671ccb9f6532329993dbb5 Mon Sep 17 00:00:00 2001 From: Takuya Matsuyama Date: Thu, 16 Jan 2014 16:21:17 +0000 Subject: [PATCH] Don't insert divider to breadcrumb items --- lib/bootstrap_helper/breadcrumb.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/bootstrap_helper/breadcrumb.rb b/lib/bootstrap_helper/breadcrumb.rb index a02c708..04c2e2b 100644 --- a/lib/bootstrap_helper/breadcrumb.rb +++ b/lib/bootstrap_helper/breadcrumb.rb @@ -50,11 +50,7 @@ def render_breadcrumb breadcrumb_class << "first" if i == 0 breadcrumb_class << "last active" if i == (@breadcrumbs.length - 1) - if i == (@breadcrumbs.length - 1) - breadcrumb_content = c - else - breadcrumb_content = c + " " + content_tag(:span, "/", :class => "divider") - end + breadcrumb_content = c crumb += content_tag(:li, breadcrumb_content ,:class => breadcrumb_class ) + "\n" end