Update journal_papers_controller.rb

This commit is contained in:
chiu 2019-11-01 21:48:46 +08:00
parent fe17ec215b
commit 09151df374
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ class Admin::JournalPapersController < OrbitMemberController
before_action :need_access_right before_action :need_access_right
before_action :allow_admin_only, :only => [:index, :setting] before_action :allow_admin_only, :only => [:index, :setting]
def merge_process 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' redirect_to :action=> 'index'
end end
def merge def merge