From 7aa7239c0aeefde87cdde2b1110b768070f7d6db Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 12:27:12 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 60de3b2..0961b5f 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -1,7 +1,7 @@ class PersonalJournalsController < ApplicationController def index ENV['all_root'] = Rails.root - puts ENV['all_root'] + puts Rails.root params = OrbitHelper.params page_data_count = OrbitHelper.page_data_count journal_papers = JournalPaper.where(is_hidden: false).sort_for_frontend.page(OrbitHelper.params[:page_no]).per(page_data_count)