https://github.com/littlebtc/font-awesome-sass-rails
想要的是链接到"图标+文字",该怎么 用 link_to 写呢?
<%= link_to content_tag('i', nil, class: "icon-white icon-home") + "Index", root_path %>
<a href="<%= some_path %>">
<i class='icon-whatever'></i> text
</a>
我用 slim 是这样写的
a href=(some_path)
i.icon-whatever
'
| text