From 4588dd7ea4718092eb092f2e3e4faf8bb21c7fae Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 14 Aug 2019 11:45:19 +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 6f1415c..44048ff 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -87,7 +87,7 @@ class PersonalJournalsController < ApplicationController end choice_value = fields_to_show choice_value.unshift("default") - choice_select=choice_value.map{|iter| iter==params[:selectbox] ? "selected" : " "} + choice_select=choice_value.map{|iter| iter==params[:selectbox] ? "true" : ""} choice_select=choice_select.map{|value| {"choice_select" => value}} choice_value=choice_value.map{|value| {"choice_value" => value}} choice_default = params[:locale]!='en' ? "——選取分類——" : "——select class——"