title: Rails: NoMethodError - undefined method 'save'
body: <p>In my controller I have this:</p>
  
  <pre><code>def hours_create
    @hour = params[:hour].map { |hour_attrs| Hour.create(hour_attrs) }  
    if @hour.save
      redirect_to :back, notice: "hour created."
    else
      render :new
    end
  end  
  </code></pre>
  
  <p>The error is coming from <code>@hour.save</code>, but not sure what to replace it, because I need to redirect the page somehow when item is saved into my database?</p>
  
  <p>Why is there this error?</p>
  
  <p>Thanks</p>