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: employments_controller.rb
    path of file: ./repos/socializer/app/controllers/socializer/people
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

#
# Namespace for the Socializer engine
#
module Soc
    
      def create
        employment = employments.build(person_employment_params)

        if employment.save
          flash[:notice] = t("socializer.model.create", model: "Employment")
          redirect_to current_user
        else
          render :new
        end