title: Rails How to create multiple object with checkboxes
body: <p>I want create multiple Indhold in Indhold model. But when I submit I only get 1 Indhold parameter and it create only 1 indhold, even if i have checked several checkboxes .
  I want it to create new Indhold width those Check Checkboxes.
  My indhold form:</p>
  
  <pre><code>&lt;%= form_tag({:action =&gt; 'create'}, {:multipart =&gt; true} ) %&gt;
  
     &lt;% for indhold in Indhold.find(:all) %&gt;
     &lt;%= check_box_tag( "indholds[navn]", indhold.navn ) %&gt;
      &lt;%= indhold.navn %&gt;&lt;br /&gt; 
       &lt;% end %&gt;
  
   &lt;/div&gt; 
    &lt;div class="actions"&gt;
      &lt;%= submit_tag( "Submit" ) %&gt; 
    &lt;/div&gt;
  </code></pre>
  
  <p>My indhold controller:</p>
  
  <pre><code>  def new
      @indhold = Indhold.new
  
      respond_to do |format|
        format.html # new.html.erb
        format.xml  { render :xml =&gt; @indhold }
      end
    end
  
    def create
      @indhold = Indhold.new(params[:indhold])
      respond_to do |format|
        if @indhold.save
          format.html { redirect_to(@indhold, :notice =&gt; 'Indhold was successfully created.') }
          format.xml  { render :xml =&gt; @indhold, :status =&gt; :created, :location =&gt; @indhold }
        else
          format.html { render :action =&gt; "new" }
          format.xml  { render :xml =&gt; @indhold.errors, :status =&gt; :unprocessable_entity }
        end
      end
  </code></pre>
  
  <p>Best regards, 
  Rails beginner</p>