From 9e40cbb8e9fa5d6794b64217e7ec133f836729de Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Aug 2019 08:40:16 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 03a7470..c0d79c5 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 { |array| array["head-title"] } + choice_show = headers.select ( :"head-title" ) choice_default = OrbitHelper.params[:locale]!='en' ? "——選取分類——" : "——select class——" choice_show.unshift(choice_default) {