From 710a8dcbd72e5f5d34f3ea0ea8b740a4d63d7dab Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 14 Aug 2019 08:55:50 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 93058aa..3046040 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -87,10 +87,10 @@ class PersonalJournalsController < ApplicationController end choice_value = fields_to_show choice_value.unshift("paper_title") - choice_value=choice_value.map{|value| {"choice_value":value}} + choice_value=choice_value.map{|value| {"choice_value" => value}} choice_default = OrbitHelper.params[:locale]!='en' ? "——選取分類——" : "——select class——" choice_show.unshift(choice_default) - choice_show=choice_show.map{|value| {"choice_show":value}} + choice_show=choice_show.map{|value| {"choice_show" => value}} choice=choice_value.zip(choice_show) select_text = params[:locale]!='en' ? "搜尋類別:" : "search class:" search_text = params[:locale]!='en' ? "關鍵字搜尋:" : "word to search:"