質問編集履歴
5
エラー部分
test
CHANGED
File without changes
|
test
CHANGED
@@ -266,7 +266,7 @@
|
|
266
266
|
|
267
267
|
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
268
268
|
|
269
|
-
<script type="text/javascript" src="pack/preview"></script>
|
269
|
+
<script type="text/javascript" src="pack/preview"></script> エラー部
|
270
270
|
|
271
271
|
|
272
272
|
|
4
アプリケーション.html.erbの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -154,34 +154,6 @@
|
|
154
154
|
|
155
155
|
|
156
156
|
|
157
|
-
_favorite.html.erb
|
158
|
-
|
159
|
-
```
|
160
|
-
|
161
|
-
<% if user_signed_in? %>
|
162
|
-
|
163
|
-
<% if @book.favorited_by?(current_user) %> <!-- ログインしているユーザーがファボしたかどうかで分岐 -->
|
164
|
-
|
165
|
-
<button><span>お気に入り解除: </span><%=link_to book.favorites.count, book_favorites_path(book.id), method: :delete, remote: true %></button>
|
166
|
-
|
167
|
-
<% else %>
|
168
|
-
|
169
|
-
<button><span>お気に入り登録: </span><%=link_to book.favorites.count, book_favorites_path(book.id), method: :post, remote: true %></button>
|
170
|
-
|
171
|
-
<% end %>
|
172
|
-
|
173
|
-
<% else %>
|
174
|
-
|
175
|
-
<p><span>お気に入り数: </span><%= book.favorites.count %></p>
|
176
|
-
|
177
|
-
<% end %>
|
178
|
-
|
179
|
-
```
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
157
|
投稿画面 new.html.erb
|
186
158
|
|
187
159
|
```
|
3
application.html.erb
test
CHANGED
File without changes
|
test
CHANGED
@@ -267,3 +267,47 @@
|
|
267
267
|
|
268
268
|
|
269
269
|
```
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
application.html.erb
|
276
|
+
|
277
|
+
```
|
278
|
+
|
279
|
+
<!DOCTYPE html>
|
280
|
+
|
281
|
+
<html>
|
282
|
+
|
283
|
+
<head>
|
284
|
+
|
285
|
+
<title>Books</title>
|
286
|
+
|
287
|
+
<%= csrf_meta_tags %>
|
288
|
+
|
289
|
+
<%= csp_meta_tag %>
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
294
|
+
|
295
|
+
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
296
|
+
|
297
|
+
<script type="text/javascript" src="pack/preview"></script>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
</head>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
<body>
|
306
|
+
|
307
|
+
<%= yield %>
|
308
|
+
|
309
|
+
</body>
|
310
|
+
|
311
|
+
</html>
|
312
|
+
|
313
|
+
```
|
2
'appendChild'
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
'appendChild' エラー
|
test
CHANGED
File without changes
|
1
編集の際もでてきません
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
プレビュー機能で
|
1
|
+
プレビュー機能が実装できない!
|
test
CHANGED
File without changes
|