1 2 3 4 5 6 7
# frozen_string_literal: true module ApplicationHelper def is_active(action) params[:action] == action ? "current" : nil end end