Update journal_papers_controller.rb

This commit is contained in:
chiu 2019-11-01 21:45:27 +08:00
parent 37b23a6f9d
commit fe17ec215b
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class Admin::JournalPapersController < OrbitMemberController
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']] puts ['id1',params['journal_id']]
redirect_to 'index' redirect_to :action=> 'index'
end end
def merge def merge
@journals=JournalPaper.order_by(:year=>'desc').map{|value| value}.group_by{|v| [v[:paper_title],v[:journal_title]]} @journals=JournalPaper.order_by(:year=>'desc').map{|value| value}.group_by{|v| [v[:paper_title],v[:journal_title]]}