title: Rails: Multiple dropdown menus collection_select
body: <p>Super Rails n00b here: Currently I have a form with the following code:</p>
  
  <pre><code>&lt;%= f.collection_select :account_ids, @accounts, :id, :name, include_blank: true %&gt;
  </code></pre>
  
  <p>and it currently works how I want it to but now I would like to have multiple drop down menus so I can select multiple accounts. I do not want the multiple select to be on the same dropdown.</p>
  
  <p>If I do this:</p>
  
  <pre><code>&lt;%= f.collection_select :account_ids, @accounts, :id, :name, include_blank: true %&gt;
  &lt;%= f.collection_select :account_ids, @accounts, :id, :name, include_blank: true %&gt;
  &lt;%= f.collection_select :account_ids, @accounts, :id, :name, include_blank: true %&gt;
  </code></pre>
  
  <p>only the last selection appears in the params. How can I make it so the params would look like this:</p>
  
  <pre><code>"journal"=&gt;{"account_ids"=&gt;["1","2","3"]}
  </code></pre>
  
  <p>Can collection.select do this or should I be using something different? Any help would be greatly appreciated. Thanks!</p>