title: How to use check_box_tag to pass it to the params hash in Rails?
body: <p>So I am looping through an array of movie characters, each of whom has a checkbox. I want it such that when I hit the "Select My Cast" button and I get redirected to the teams_path (index method in my controller) to be able to get the ids of the characters the I had selected in an array in my params hash.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>  -@chars.each do |i|
     =image_tag(i.image)
     %br
     First Name:
     =i.f_name
     %br
     Last Name:
     =i.l_name
     %br
     Show :
     =i.show
     %br
     =check_box_tag 'char_ids[]', i.id
     %hr
  
  = link_to "Select My Cast", teams_path, :method =&gt; :get
  </code></pre>
  
  <p>I placed a binding.pry in my index method in my controller and params had no char_ids array or any relevant information. Thanks for the help; I realize this a known to many question.</p>