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 of helper methods (each for one item) to check the controller and action. def current_root_class 'class="current"' if controller_name == "homepage" && action_name == "index" end <ul> <li <%= current_root_class %>><%= link_to "Home", roo
![Best way to add "current" class to nav in Rails 3](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)