I want to have dynamic attribute active for li on a current page. I saw this topic:How to get Twitter-Bootstrap navigation to show active link?, but solutions not working for me. I don't have specific controllers for partials views. Method current_page doesn't work with href. I don't use defined routes, that's why don't have link_to.
I tried to use data-toggle="pills", correctly marks on navbar current clicked a link, but not reference(not changed view).
li
a.waves-effect.waves-light href="#{root_path}#slider" Home
li
a.waves-effect.waves-light href="#{root_path}#about" About us
li
a.waves-effect.waves-light href="#{root_path}#price" Price
li
a.waves-effect.waves-light href="#{root_path}#contact" Contact