I have a list of tabs at the top of my application that I include in a general layout in application.html.erb. They look like this:
I did this in the application helper and it seems to work fine:
def current_page(path) "active" if current_page?(path) end
Then call like this:
<li class="<%= current_page(root_path)%>"> <%= link_to "Home", root_path %></li>
Take a look at TabsOnRails