1 2 3 4 5 6 7
# frozen_string_literal: true module ApplicationHelper def active_nav_class(path) current_page?(path) ? 'active' : '' end end