Rails示例应用程序标头语法错误

时间:2013-06-17 17:48:14

标签: ruby-on-rails devise

我收到第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 %>

1 个答案:

答案 0 :(得分:0)

逗号在错误的地方。

<% link_to "Home", root_path, class: "brand" %>