我将如何在此处指定 :class => "" ?:
<li><%= link_to "#" current_user %></li>
泰
<li><%= link_to "#", current_user, :class => "class-name" %></li>
检查以下,
<%= link_to "Articles", articles_path, :id => "news", :class => "article" %>
# => <a href="/articles" class="article" id="news">Articles</a>
有关更多信息,请查看:- http://apidock.com/rails/ActionView/Helpers/UrlHelper/link_to