在collection_select中,我需要傳遞以下參數。總計7,但方法接受最大6,我如何加入?使用此語法幫手colllection_select,參數的錯誤數量(給定7,預期的4..6)
<%= f.select :skill_list, options_from_collection_for_select(Project.tag_counts_on(:skills).order(:name), "id", "name"), {},:multiple=> true,:validate=> true,:class=> 'form-control' %>
謝謝。 – dev85