ruby on rails - how to add 'glyphicon glyphicon-user' and 'glyphicon glyphicon log-in' in this code? -


my code coming wrong: have tried coming wrong

<ul class="nav navbar-nav navbar-right">   <li> <span class="glyphicon glyphicon-user"> <%= link_to 'signup',   {:controller =>'users', :action => 'new'} %></span> </li>   <li> <span class="glyphicon-log-in"> <%= link_to 'login', {:controller =>'sessions', :action => 'new'} %></span> </li> </ul> 

try this:

<ul class="nav navbar-nav navbar-right">   <li> <%= link_to raw('<span class="glyphicon glyphicon-user"></span>'),   {:controller =>'users', :action => 'new'} %> </li>   <li> <%= link_to raw('<span class="glyphicon glyphicon-log-in"></span>'), {:controller =>'sessions', :action => 'new'} %> </li> </ul> 

your links should wrap icons, not other way around. if it's still not working, it's due not including relevant icon font or css files correctly in project. if it's still not working, update question screenshot of looks like, , relevant code you're including bootstrap's css , fonts.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -