From dd492dfc9d8d3b127d4b4177afef09e33accee32 Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 15 Aug 2019 08:49:54 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index cd3785b..7f020ad 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -48,8 +48,7 @@ class PersonalJournalsController < ApplicationController else page_to_show = params[:page_no].to_i end - journal_papers_show_last = journal_papers_show[(page_to_show-1)*OrbitHelper.page_data_count...page_to_show*OrbitHelper.page_data_count] - journal_papers = journal_papers_show_last + journal_papers = journal_papers_show[(page_to_show-1)*OrbitHelper.page_data_count...page_to_show*OrbitHelper.page_data_count] journal_papers_total_pages = (journal_papers_show.length/OrbitHelper.page_data_count.to_f).ceil timer = Time.now-t else