Bootstrap Active Class Solution for Navbar in Rails
Sometimes while you are adding bootstrap to your rails app, you can getting some problem on javascript side. In this article I try to explain how we can fix active
class to navbar . For fixing, you can write in helper active_class
method like below
1 2 3 4 5 |
|
In your views from bootstrap classes should be like,
1 2 3 4 5 6 7 |
|
In addition, you can update according to your style to below command, but in this part it s important to use !important
method for overwrite on active
class .
1 2 |
|
That’s all. I hope helped to you.
For more information: http://goo.gl/twDl3t