我遇到了這個錯誤,我試圖調試它,但它似乎不可能。我正在使用授權。我正在關注一個月的鐵軌,我被困在「授權:誰可以?誰不能?」可以找到SyntaxError的錯誤ROR
我得到這個錯誤SyntaxError在引腳#索引,我不能得出多少形式。
如果你們中的任何人都能找到問題,我會非常開心!
鏈接到我的github:
https://github.com/SillasPoulsen/Pinteresting
我遇到了這個錯誤,我試圖調試它,但它似乎不可能。我正在使用授權。我正在關注一個月的鐵軌,我被困在「授權:誰可以?誰不能?」可以找到SyntaxError的錯誤ROR
我得到這個錯誤SyntaxError在引腳#索引,我不能得出多少形式。
如果你們中的任何人都能找到問題,我會非常開心!
鏈接到我的github:
https://github.com/SillasPoulsen/Pinteresting
的圖像清晰地說,錯誤
<% @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 %>
'<%= link_to'編輯',edit_pin_path(pin)%>'你錯過了標籤 – Nithin 2014-09-10 11:51:40
非常感謝你:) – user3238546 2014-09-10 12:16:02
請張貼錯誤信息,與回溯到一起。沒有這個,它只是猜測。 – BroiSatse 2014-09-10 11:30:11
對不起,http://i59.tinypic.com/24xggpl.png – user3238546 2014-09-10 11:33:59