作者:悠闲的大黄 | 来源:互联网 | 2023-09-07 14:26
该提问来源于开源项目:formtastic/formtastic
Almost forgot, here's a little snippet showing what I used to work around this issue within ActiveAdmin:
1 2 3 4 5 6 7 8 9 10 11 12
| ruby
ActiveAdmin.register User do
# edit action
form do |f|
f.inputs do
...
# allow editing of JSON field as string
f.input :options, as: :string
end
end
end |