ruby on rails - RoR Using break in a YML language file, .html_safe not working -
hi im trying app working on multilenguage, of them need <br>
inside lines ... have achieved using like
<%= f.label :email_confirmation, t('generales.email_confirmation').html_safe %>
this works great in yml can have this:
email_confirmation: 'confirmer courriel <br> électronique'
but found problem.. dont know how use html_safe
<%= rate @player, :area_domination %>
i tried :
<%= rate @player, :area_domination, t('generales.rateplayer').html_safe %>
and
<%= rate @player.html_safe, :area_domination %>
or
<%= raw rate @player, :area_domination %>
but <br>
not printing html.
Comments
Post a Comment