title: Multiple select box is not working in rails
body: <p>I am using the following code to select multiple values. </p>
  
  <pre><code> &lt;select name="video" multiple="multiple" id="form-field-select-2" class="form-control"&gt;
   &lt;%video.each do |option|%&gt;
   &lt;option&gt;&lt;%=option%&gt; &lt;/option&gt;
   &lt;%end%&gt;
   &lt;/select&gt;
  </code></pre>
  
  <p>But after submitting form its not giving all selected values,instead of its giving only the last selected value.</p>
  
  <p>Please share if you have any idea about this issue.</p>