回答編集履歴
2
typo
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
- <% end %>
|
16
16
|
|
17
|
-
+ <%= render partial: 'post', collection
|
17
|
+
+ <%= render partial: 'post', collection: @search_posts %>
|
18
18
|
|
19
19
|
|
20
20
|
|
1
@search_postsの中身がわからんので想定外でも動くように変更
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
- <% end %>
|
16
16
|
|
17
|
-
+ <%= render @search_posts %>
|
17
|
+
+ <%= render partial: 'post', collections: @search_posts %>
|
18
18
|
|
19
19
|
|
20
20
|
|