title: Delete multiple item by checkbox
body: <p>I want have this ability to select multiple items with checkboxes and delete them in one place.</p>
  
  <p>This is the code:</p>
  
  <pre><code>&lt;% @products.each do |p| %&gt;
  &lt;%= check_box_tag "product[]" , p.id %&gt;
  &lt;div class="product_image"&gt;
      &lt;%= image_tag p.photo.url(:thumb) , :alt =&gt; "#{p.name}" %&gt;
  &lt;/div&gt;
  &lt;%= link_to "&lt;h3&gt;#{p.name}&lt;/h3&gt;" , edit_product_path(p) %&gt;
  &lt;div class="product_desc"&gt;
      &lt;%=h truncate(p.description.gsub(/&lt;.*?&gt;/,''),80) %&gt;
  &lt;/div&gt;
  &lt;div class="product_price"&gt;
      &lt;%=h p.price %&gt;
  &lt;/div&gt;
  &lt;div class="product_categories"&gt;
      &lt;% for category in p.categories.find(:all) %&gt;
          &lt;%=h category.name %&gt;
      &lt;% end %&gt;
  &lt;/div&gt;
  &lt;div id="produt_edit_nav"&gt;
      &lt;%= link_to 'Show' , product_path(p) %&gt;
      &lt;%= link_to 'Edit', edit_product_path(p) %&gt;
      &lt;%= link_to 'Remove', product_path(p), :confirm =&gt; "Are you really want to delete #{p.name} ?", :method =&gt; 'delete' %&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  &lt;div id="products_nav"&gt;
      &lt;%= link_to "Add a new Product" , new_product_path %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The checkboxes give me right values, but:</p>
  
  <ol>
  <li><p>How can I give them different id values for html code, all of them have <code>id="product[]"</code>?</p></li>
  <li><p>How can I delete the checked items in one click?</p></li>
  <li><p>Also, what's the meaning of this part: <code>product[]</code>?</p></li>
  </ol>