I have an ember application with a bootstrap menubar. By default the home button is rendered as being the active option and is blue. How do I change the active option based on what link is selected?
<ul class="nav nav-pills nav-stacked" style="max-width: 300px;">
<li class="active">
<a href="#"{{#link-to "index"}}<span class="glyphicon glyphicon-home"></span>     Home {{/link-to}}</a>
</li>
<li>
<a href="#"{{#link-to "settings"}}<span class="glyphicon glyphicon-wrench"></span>     Settings {{/link-to}}</a>
</li>
<li>
<a href="#"<span class="glyphicon glyphicon-arrow-right"></span> Logout</a>
</li>
</ul>
EDIT: According to http://emberjs.com/guides/routing/defining-your-routes/ the link-to
helper is supposed to take care of this automatically
EDIT: I have tried experimenting with the following-
<ul class="nav">
{{#linkTo 'index' tagName="li"}}Home{{/linkTo}}
{{#linkTo 'settings' tagName="li"}}Settings{{/linkTo}}
</ul>
because according to the ember page link above, the tagName attribute is responsible for assigning the active class, but it doesnt work for me.