I have used select2 gem in my rails 6 project to show multiple options to select
select2
<%= select_tag \'skill[]\', options_for_select(Course.populate_