Rails | ActiveAdmin |Custom checkboxes collection for array field

Sometimes you might want to store coherent information in single string field in database. For such fields you might want the Admin to have some mechanism to update.

In Rails you can have Array field like

# in migration file
# Array Types
t.string :open_days,       array: true, default: []
t.string :payment_options, array: true, default: []
t.text   :vehicle_vendors, array: true, default: []
t.text   :services_ids,    array: true, default: []

for such fields the form builder would look like Continue reading