Railsで複数選択リストボックスを作成しようとしています。私のビューコードは次のとおりです。
<div>
<%=nested_form_for(@allocation) do|builder|%>
<%=builder.label :song_id, "Pick a song" %>
<%=builder.select :song_id, options_for_select(
Song.all.collect {|s| [ [s.title, s.artist].join(" by "), s.id ] },
{ include_blank: true, multiple: true, size: 5 }) %>
<%=builder.submit "Add Song", class: "btn btn-large btn-primary" %>
<% end %>
</div>
現時点では、通常の単一の選択ボックスがありますが、これを複数選択に変換したいと思います。任意のポインタをいただければ幸いです。前もって感謝します