I'm having what I assume is a simple syntax problem in haml using ruby on rails and bootstrap.
Currently whenever I want to use a link_to inside a bootstrap element such as a button or a navbar li, the styling of the link_to overrides the one used by the element itself. It results in blue underligned links, which severely clashes with some layouts.
Things like :
%ul.nav.navbar-nav
%li
= link_to t(:button_root), '/'
%li
= link_to t(:button_something), something_path
or
.row
= link_to something_path, class: 'btn btn-default' do
= t(:button_something)
will produce this behavior. I've come up with a few impractical solutions like overriding the css directly in application.css but this is hardly something I'd like to have to do everytime. What am I doing wrong in this syntax ?
EDIT :
The inclusion of bootstrap is done through importing through application.css.scss
@import "bootstrap-sprockets";
@import "bootstrap";
The rest of the stylesheets are empty apart from Active Admin's
@import "active_admin/mixins";
@import "active_admin/base";
EDIT :
The inclusion of active admin's css in the application stylesheet is the cause of the issue. With a clearer idea of the cause of the issue I could find this answer that explains the issue.
https://stackoverflow.com/a/11745446/5194491
I opted to displace active admin's css sheet in the vendor folder as it seemed to me the more sensible choice.