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