app/helpers/application_helper.rb
# :nodoc:
# Create nav items in Bootstrap 4 style
:nodoc:
Create nav items in Bootstrap 4 style
: nodoc : Create nav items in Bootstrap 4 style
def nav_item(url, &block)
    active = "active" if current_page?(url)
    tag.li class: "nav-item #{active}" do
      link_to(url, { class: "nav-link" }, &block)
    end
  end
def nav_item ( url , & block ) active = "active" if current_page? ( url ) tag . li class : "nav-item #{active}" do link_to ( url , { class : "nav-link" } , & block ) end end
:nodoc:
Create nav items in Bootstrap 4 style
: nodoc : Create nav items in Bootstrap 4 style
url
<not_specific>
block
<not_specific>