I am using this form below in admin portal to create a new record but somehow required: true is not working. I have using rails 5. Any idea where I could be going wrong?
ActiveAdmin.register Workers do
permit_params :name, :type, versions: []
form(html: { multipart: true }) do |f|
f.inputs do
f.input :name, as: :string
f.input :type, as: :string
f.input :versions, as: :select, input_html: { multiple: true, required: true }
end
f.actions
end
end