From 42088a1472208ce34d86eca25f68f7e1325a9c69 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 1 Nov 2019 20:48:40 +0800 Subject: [PATCH] Update journal_papers_controller.rb --- app/controllers/admin/journal_papers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/journal_papers_controller.rb b/app/controllers/admin/journal_papers_controller.rb index 0799836..c105a46 100644 --- a/app/controllers/admin/journal_papers_controller.rb +++ b/app/controllers/admin/journal_papers_controller.rb @@ -10,6 +10,7 @@ class Admin::JournalPapersController < OrbitMemberController before_action :need_access_right before_action :allow_admin_only, :only => [:index, :setting] def merge + puts ['id',params['journal_id']] @journals=JournalPaper.order_by(:year=>'desc').map{|value| value}.group_by{|v| [v[:paper_title],v[:journal_title]]} @journals.each do |key,value| if value.length==1 @@ -40,7 +41,6 @@ class Admin::JournalPapersController < OrbitMemberController end end end - puts ['hi',@journals] end def index @writing_journals = JournalPaper.order_by(:year=>'desc').page(params[:page]).per(10)