I have this:
<%= link_to biscuits_path do %>
<strong> <%= pluralize @biscuit.count, t('biscuits') %> </strong>
<%= end %>
the result is a link like:
<a href="/en/biscuits"> <strong> 2 Biscuits </strong></a>
I want a link with strong only in the number, something like:
<a href="/en/biscuits"> <strong> 2 </strong> Biscuits </a>
How can I do it?
It is easier and clearer to use
Stringpluralize fromActiveSupportcore extensions:Also, you do not need
<%= end %>.<% end %>is fine.