2014-09-10 31 views
0

我遇到了这个错误,我试图调试它,但它似乎不可能。我正在使用授权。我正在关注一个月的铁轨,我被困在“授权:谁可以?谁不能?”可以找到SyntaxError的错误ROR

我得到这个错误SyntaxError在引脚#索引,我不能得出多少形式。

如果你们中的任何人都能找到问题,我会非常开心!

链接到我的github:

https://github.com/SillasPoulsen/Pinteresting

+1

请张贴错误信息,与回溯到一起。没有这个,它只是猜测。 – BroiSatse 2014-09-10 11:30:11

+0

对不起,http://i59.tinypic.com/24xggpl.png – user3238546 2014-09-10 11:33:59

回答

0

的图像清晰地说,错误

<% @pins.each do |pin| %> 
    <tr> 
    <td><%= pin.description %></td> 
    <td><%= pin.user.email if pin.user %></td> 
    <td><%= link_to 'Show', pin %></td> 
    <% if pin.user == current_user %> 
     <%= link_to 'Edit', edit_pin_path(pin) %> 
     <%= link_to 'Destroy', pin, method: :delete, data: { confirm: 'Are you sure?' } %> 
    <% end %> 
    <% end %> # remove this line 
</tr> 
<% end %> 
+1

'​​<%= link_to'编辑',edit_pin_path(pin)%>'你错过了标签 – Nithin 2014-09-10 11:51:40

+0

非常感谢你:) – user3238546 2014-09-10 12:16:02

相关问题