When i use select with multiple options, form send such get request:
/saveProduct?tags=1&tags=2
so I need to get them with params[:tags], but it takes only last string. How to get all of them?
EDIT:
<%= form_tag("/saveProduct", multipart: true, method: :get) do %>
 <select multiple="multiple" class="tagsSelect" name = "tags" >
    <option value = 1 >123</option>
     <option value = 2 >dfsd</option>
</select>
<% end %>
 
     
    