I have a standard bootstrap navbar in a partials/_header.erb partial Bootstrap Navbar Gist
I’m confused about how I should set bootstrap’s class=“active” in the navigation for a relevant page. My thinking in psuedo-code is that I want
<li <% if(middleman.obj.for.current.url = this.articles.url) print 'class="active"' %> ><a href="page1.html">Page 1</a></li>
What middleman properties do I want to check against each other ?
Is there a better approach?