Why is there such a big difference in my twitter boot button with the following two codes:
<li><%= link_to 'Post A Ride', home_path, :class => "btn btn-success" %></li>
and
<li> link_to '<button class="btn btn-success"> Post A Ride </button>'</li>
I would like the button to be the same as the second code button, the one with ERB was ugly.
It seems that the class li and Nav and Ul were messing around with the class btn. How to override it?
Here is the complete code:
<header class="navbar"> <div class="navbar-inner"> <div class="container"> <%= link_to "ALift", '#', id: "logo" %> <nav> <ul class="nav pull-right"> <li><%= link_to 'Post A Ride', home_path, :class => "btn btn-success" %></li> <li><%= link_to "Search", '#' %></li> <li><%= link_to "Help", '#' %></li> <li><%= link_to "Sign in", '#' %></li> </ul> </nav> </div> </div> </header>
Any advice.
source share