回答編集履歴

1

renderの引数を修正

2021/06/11 18:18

投稿

okuramasafumi
okuramasafumi

スコア117

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