diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 3271bdb..842c4b5 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -88,6 +88,7 @@ class PersonalJournalsController < ApplicationController choice_value = fields_to_show choice_value.unshift("default") choice_select=choice_value.map{|iter| iter==params[:selectbox] ? "true" : "false"} + 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——" choice_show.unshift(choice_default)