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: proposals_controller.rb
    path of file: ./repos/call4paperz/app/controllers
    
    the code of the file until where you have to start completion: class ProposalsController < ApplicationController
  before_action :event
  before_action :authenticate_user!, :only => [:
    
  def create
    @proposal = Proposal.new(proposal_params)
    @proposal.user = current_user
    @proposal.event = event

    respond_to do |format|
      if @proposal.save
        format.html { redirect_to(@event, :notice => 'Proposal was successfully created.') }
      else
        format.html { render :action => "new" }
      end
    end