Why is there such a big difference in my twitter bootstrap button with the two following 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 is ugly.
It seems the li class and and Nav and Ul is messing with the btn class. How do I override it?
Here is the full 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.