質問編集履歴
1
スペルミスを直しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -86,7 +86,7 @@
|
|
86
86
|
|
87
87
|
<% favorite= Favorite.find_by(book_id: @book.id) %>
|
88
88
|
|
89
|
-
<%= button_to book_favorite_path(favorite, book_id: @book.id), method: :delete, class: "favorite
|
89
|
+
<%= button_to book_favorite_path(favorite, book_id: @book.id), method: :delete, class: "favorite-buttons", remote: true do %>
|
90
90
|
|
91
91
|
<%= image_tag("star-on.png") %>
|
92
92
|
|
@@ -102,7 +102,7 @@
|
|
102
102
|
|
103
103
|
<% else %>
|
104
104
|
|
105
|
-
<%= button_to book_favorites_path(@book), class: "favorite
|
105
|
+
<%= button_to book_favorites_path(@book), class: "favorite-buttons", remote: true, cache: false do %>
|
106
106
|
|
107
107
|
<%= image_tag("star-off.png") %>
|
108
108
|
|