A)这是工作链接:
<%= link_to "+ Start a club", account_setup_path(id: :start_a_club) %>
B)这就是我想要的样子:
<a class="list-group-item" href="#"><i class="fa fa-plus fa-fw hot-pink"></i> Start a club</a>
如何重新编写A以获得正确的CSS(即所以&#39; +&#39;是粉红色的)?
谢谢!
答案 0 :(得分:2)
<%= link_to account_setup_path(id: :start_a_club), class: 'list-group-item' do %>
<i class="fa fa-plus fa-fw hot-pink"></i> Start a club
<% end %>