I have some static pages in a navigation menu. I want to add a class like \"current\" to the item which is currently displaying.
The way I am doing so is to add tons
I think the best way is
application_helper.rb:
def is_active(controller, action) params[:action] == action && params[:controller] == controller ? "active" : nil end
And in menu: