This Work in Collections

<%= f.input :collection_ids, as: :select, collection: available_collections(nil), input_html: { class: 'form-control', multiple: true } %>