<li><%= link_to link.title, url_for(link.url) %></li>
<li class="<%= 'active' if current_page? link.url  %>"><%= link_to link.title, url_for(link.url) %></li>
Add active class to links when current url
Add active class to links when current url
