回答編集履歴
1
重複情報削除
answer
CHANGED
@@ -12,7 +12,6 @@
|
|
12
12
|
```
|
13
13
|
<div id="sympathizes_ajax">←削除
|
14
14
|
<% if micropost.sympathized_by? current_shop %>
|
15
|
-
<div id="sympathizes_ajax">
|
16
15
|
<%= link_to 'いいね!を取り消す', micropost_sympathizes_path(micropost.id), method: :delete, :id => "#{micropost.id}", remote: true %>← :id => "#{micropost.id}"をリンク内に追加
|
17
16
|
<% else %>
|
18
17
|
<%= link_to 'いいね!', micropost_sympathizes_path(micropost.id), method: :post, :id => "#{micropost.id}", remote: true %>← :id => "#{micropost.id}"をリンク内に追加
|