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 use a simple helper like this for top level links so the /stories/my-story page highlights the /stories link
/stories/my-story
/stories
def nav_link text, url active = (url == request.fullpath || (url != '/' && request.fullpath[0..(url.size-1)] == url)) "#{text}".html_safe end