Update personal_journals_controller.rb
This commit is contained in:
parent
60a4dd1743
commit
a360529e89
|
@ -87,10 +87,10 @@ class PersonalJournalsController < ApplicationController
|
|||
end
|
||||
choice_value = fields_to_show
|
||||
choice_value.unshift("default")
|
||||
choice_select=choice_value.map{|iter| iter==params[:selectbox] ? "true" : "false"}
|
||||
choice_value=choice_value.map{|value| {"choice_value" => value}}
|
||||
choice_default = params[:locale]!='en' ? "——選取分類——" : "——select class——"
|
||||
choice_show.unshift(choice_default)
|
||||
choice_select=choice_value.map{|iter| iter==params[:selectbox] ? "true" : "false"}
|
||||
choice_show=choice_show.map{|value| {"choice_show" => value}}
|
||||
choice=choice_value.zip(choice_show,choice_select)
|
||||
choice=choice.map{|value| value.inject:merge}
|
||||
|
|
Loading…
Reference in New Issue