title: Create or Update Multiple Records at a Single Time Using Strong Parameters in Rails 4
body: <p>I have two questions:</p>
  
  <hr>
  
  <p>In Rails 3 you can update multiple records using</p>
  
  <pre><code>Product.update(params[:products].keys, params[:products].values)
  </code></pre>
  
  <p>How do you do the same thing in Rails 4 using Strong Parameters? How about creating multiple records at the same time? Can you please elaborate your solution with an example in a format like the following:</p>
  
  <pre><code>params = ActionController::Parameters.new(...)
  Product.create!(params.require(...)permit(...)
  </code></pre>
  
  <hr>
  
  <p>Also, my products model has a column called number which is equal to the order that they are updated. Is there a way to pass a counter value to the number while updating?</p>
  
  <p>Thanks.</p>