1
雖然這工作與jsonb領域:如何添加活動管理領域一個Postgres jsonb場
step.title['en'] = 'Lorem'
step.save
step.title
=> {"en"=>"Lorem"}
下列不
form do |f|
f.inputs name: 'Title', for: :title do |t|
t.input :en, input_html: { value: f.object.title['en'] } if f.object.present?
end
end
end
在問基於這個問題的答案COS似乎並沒有對我的情況下工作:Unable to find input class for json - handling JSON type in Active Admin