diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 0180b1b8d..0c77df2d5 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -67,6 +67,6 @@ class PostsController < ApplicationController @author.posts else Post - end.order(created_at: :desc).includes(:author, comments: :author).paginate(page: params[:page]) + end.order(created_at: :desc).includes(:author, comments: :author).paginate(page: params[:page], per_page: 12) end end