def nav_link(link_text, link_path)
      recognized = Rails.application.routes.recognize_path(link_path)
      class_name = recognized[:controller] == params[:controller] ? 'active' : ''
      content_tag(:li, class: class_name) do
        link_to link_text, link_path
      end
    end
def nav_link(link_text, link_path)
      recognized = Rails.application.routes.recognize_path(link_path)
      class_name = recognized[:controller] == params[:controller] ? 'active' : ''
      content_tag(:li, class: class_name) do
        link_to link_text, link_path
      end
    end
Returns links in active or inactive state for highlighting current page