From 4917ce46d3b193da03b17fdc3ddc3fe75048ab64 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 26 Apr 2020 14:30:23 +0200 Subject: [PATCH] Fix "nav-item" assigning class in nav_entry helper --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4997da15..7f353e1e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -18,7 +18,7 @@ module ApplicationHelper }"))}" end - content_tag(:li, link_to(body.html_safe, path, class: "nav-link"), class: ("#{'nav-item active ' if current_page? path}#{options[:class]}")) + content_tag(:li, link_to(body.html_safe, path, class: "nav-link"), class: ("nav-item#{' active' if current_page? path} #{options[:class]}")) end def list_group_item(body, path, options = {})