From a28589cce534dfdf3e3de6130ff498eb70b9031f Mon Sep 17 00:00:00 2001 From: yystopf Date: Wed, 27 Oct 2021 14:20:27 +0800 Subject: [PATCH] fix: change index paginate --- app/views/projects/index.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/index.json.jbuilder b/app/views/projects/index.json.jbuilder index 96ab89c0..874f6097 100644 --- a/app/views/projects/index.json.jbuilder +++ b/app/views/projects/index.json.jbuilder @@ -1,4 +1,4 @@ -json.total_count @total_count +json.total_count @projects.total_count json.projects @projects do |project| # json.partial! "/projects/project_detail", project: project json.id project.id