我该如何用Rails语法编写这段代码?
<a href="/" class="glyphicon glyphicon-fire logo" aria-hidden="true" ></a>
可能是类似这样的内容:
<%= link_to '', root_path, class: 'glyphicon glyphicon-fire logo', **???** %>
我该如何用Rails语法编写这段代码?
<a href="/" class="glyphicon glyphicon-fire logo" aria-hidden="true" ></a>
<%= link_to '', root_path, class: 'glyphicon glyphicon-fire logo', **???** %>
<%= link_to '', root_path, ...., 'aria-hidden' => true %>
或者<%= link_to '', root_path, ...., aria: {hidden: true} %>
<%= link_to "", root_path, class: 'glyphicon glyphicon-fire logo', "aria-hidden" => true %>