title: POST Multiple Row to Database with fill out only one form on RAILS
body: <p>I'm try to develop one rails application.</p>
  
  <p>When I fill out the form, I'm getting this parameter.</p>
  
  <pre><code>"daysoff"=&gt;{"offdate"=&gt;"06/08/2015, 06/09/2015, 06/10/2015, 06/11/2015, 06/12/2015", "assign_id"=&gt;"3", "user_id"=&gt;"2"}
  </code></pre>
  
  <p>Here is my index controller,</p>
  
  <pre><code>def index
      @people = User.all
      @user = User.current
  
      @daysoff = Daysoff.new
  
    end
  </code></pre>
  
  <p>My table coloumns are offdate (date), user_id (int), :assign_id (int), so i want to post each date for one row and other column values must be same.</p>
  
  <p>How should i write create controller ?</p>