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: collection_type_participants_controller.rb
    path of file: ./repos/hyrax/app/controllers/hyrax/admin
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
module Hyrax
  class Admin::CollectionTypeParticipantsController < ApplicationController
    before_action do
      authorize! :manage, :collection_types
    end

    class_attribute :form_class
    self.form_class = Hyrax::Forms::Admin::CollectionTypeParticipantForm

    def create
      @collection_type_participant = Hyrax::CollectionTypeParticipant.new(collection_type_participant_params)
      i
    
    def create
      @collection_type_participant = Hyrax::CollectionTypeParticipant.new(collection_type_participant_params)
      if @collection_type_participant.save
        redirect_to(
          edit_admin_collection_type_path(@collection_type_participant.hyrax_collection_type_id, anchor: 'participants'),
          notice: I18n.t('update_notice', scope: 'hyrax.admin.collection_types.form_participants')
        )
      else
        redirect_to(
          edit_admin_collection_type_path(@collection_type_participant.hyrax_collection_type_id, anchor: 'participants'),
          alert: @collection_type_participant.errors.full_messages.to_sentence
        )
      end