diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 1bb4b5d..03a7470 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -55,7 +55,7 @@ class PersonalJournalsController < ApplicationController end choice_value = fields_to_show choice_value.unshift("paper_title") - choice_show = headers.select { |key,value| key == "head-title" } + choice_show = headers.select { |array| array["head-title"] } choice_default = OrbitHelper.params[:locale]!='en' ? "——選取分類——" : "——select class——" choice_show.unshift(choice_default) {