mercredi 6 mai 2015

Using "link_to" how to get html and rails code in same line

 <%= link_to 'Received Messages<span class="badge badge info">
 @receivedmessage.count</span>'.html_safe, '/messages/show' %>

below is the output i'm getting so far. I have to get the "message count number" inside the badge instead of "@receivedmessage.count"

enter image description here

Aucun commentaire:

Enregistrer un commentaire