回答編集履歴
1
renderの引数を修正
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
<% books.each do |book| %>
|
38
38
|
|
39
|
-
render 'book', locals: {book: book}
|
39
|
+
render partial: 'book', locals: {book: book}
|
40
40
|
|
41
41
|
<% end %>
|
42
42
|
|