我收到第10行的语法错误;有人可以帮忙吗?据我所知,我遵循了我正在使用的学习者教程...谢谢!
app/views/layouts/_header.html.erb
5 <span class="icon-bar"></span>
6 <span class="icon-bar"></span>
7 <span class="icon-bar"></span>
8 </a>
9
10 <% link_to "Home," root_path, class: "brand" %>
11
12 <div class="nav-collapse">
13 <ul class="nav">
14 <li>
15 <%= link_to 'Home', root_path %>
答案 0 :(得分:0)
逗号在错误的地方。
<% link_to "Home", root_path, class: "brand" %>