I’m using these tags together
<div class ="btn btn-warning offset3 span2" ><%=link_to "Enter Info", info_path%></div>
The outcome is that the link (a) tag overrides the text color property. It doesn’t look good on a colored button. So I want to change the properties of a link when used with btn to plain white. Any ideas how to make that happen?
You don’t need the
div– you can apply those classes directly to the anchor:That way the link is styled as a button, overriding all default link styles.