From 09151df3741111d1d3ae16997640a3ab069ce40b Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 1 Nov 2019 21:48:46 +0800 Subject: [PATCH] Update journal_papers_controller.rb --- app/controllers/admin/journal_papers_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/admin/journal_papers_controller.rb b/app/controllers/admin/journal_papers_controller.rb index e99fdf9..ff2ffa2 100644 --- a/app/controllers/admin/journal_papers_controller.rb +++ b/app/controllers/admin/journal_papers_controller.rb @@ -10,7 +10,10 @@ class Admin::JournalPapersController < OrbitMemberController before_action :need_access_right before_action :allow_admin_only, :only => [:index, :setting] def merge_process - puts ['id1',params['journal_id']] + params['journal_id'].each do |journal_id| + journal_ids = journal_id.split('/') + puts JournalPaper.find(journal_ids) + end redirect_to :action=> 'index' end def merge