誰かがこれについていくらか光を当てることができるかどうか知りたい
私はwill_paginateでacts_as_followerを使用しています
コントローラ
@products = current_user.following_shops.includes(:products).collect{|u| u.products.paginate(:page => params[:page]).order("created_at DESC")}.flatten
見る
<table>
<% @products.each do |p| %>
<tr>
<td>
<%= image_tag p.shop.logo.url(:thumb_feed).to_s %>
</td>
<td>
<%= link_to(image_tag(p.f1.url(:table).to_s), product_path(p.id)) %>
<%= link_to p.name, product_path(p.id)%>
</td>
</tr>
<% end %>
</table>
<%= will_paginate(@products) %>
しかし、レールはこのエラーを吐き続けます:
未定義のメソッド「total_pages」