I am trying to embed additional HTML inside of a link_to call as found in this thread Embed additional HTML inside of link_to call
However, I would also like to use I18n. So instead of this:
<%= link_to '<i class="icon-search"></i> Show'.html_safe, exercise_path(exercise), :class => 'btn btn-small' %>
I would like to use t(:show)
or I18n.t(:show)
instead of a hardcoded Show
in the above example. I am having trouble figuring out the correct syntax, though. Any help would be greatly appreciated.