title: ArgumentError when trying to save multiple records in Rails
body: <h1>What we want to achieve</h1>
  <p>I am sending an array from Nuxt.js, Rails is in API mode and I am getting an error when I try to retrieve and save the array contents one by one.
  I want to save the array received by params and add multiple records.</p>
  <h1>Error</h1>
  <pre><code>ArgumentError (When assigning attributes, you must pass a hash as an argument, Array passed.):
  
  </code></pre>
  <h1>Code</h1>
  <p><strong>Controller</strong></p>
  <pre class="lang-rb prettyprint-override"><code>def create
        schedule = Schedule.new(post_params)
        if schedule.save
          render json: schedule,  status: :created
        else
          render json: schedule, status: :internal_server_error
      end
    end
  
  
  def post_params
        params.require(:post).map do |schedule|
          schedule.permit(:id, :name, :start, :end, :color, :timed, :long_time, :post_id, :post_item_id)
        end
      end
  </code></pre>
  <p><strong>parameter</strong></p>
  <pre><code>post: [,…]
  0: {name: &quot;&quot;, color: &quot;#2196F3&quot;, start: 1648275300000, end: 1648276200000, timed: true, long_time: true}
  1: {name: &quot;&quot;, color: &quot;#2196F3&quot;, start: 1648361700000, end: 1648362600000, timed: true, long_time: true}
  2: {name: &quot;&quot;, color: &quot;#2196F3&quot;, start: 1648448100000, end: 1648449000000, timed: true, long_time: true}
  3: {name: &quot;&quot;, color: &quot;#2196F3&quot;, start: 1648534500000, end: 1648535400000, timed: true, long_time: true}
  4: {name: &quot;&quot;, color: &quot;#2196F3&quot;, start: 1648620900000, end: 1648621800000, timed: true, long_time: true}
  </code></pre>
  <h1>What we tried</h1>
  <p>・I tried to retrieve a value using map.</p>
  <p>・I tried to convert it to a hash using to_h at the end of pemit, but neither the value nor the error changed.</p>