You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: children_controller.rb
    path of file: ./repos/human-essentials/app/controllers/partners
    
    the code of the file until where you have to start completion: require "csv"
module Partners
  class ChildrenController < BaseController
    la
    
    def update
      child = current_partner.children.find_by(id: params[:id])

      if child.update(child_params)
        redirect_to child, notice: "Child was successfully updated."
      else
        render :edit
      end