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

module Admin
  class QuestionsController < Admin::BaseController
    load_and_authorize_reso
    
    def create
      @question = @conference.questions.new(question_params)
      @question.conference_id = @conference.id
      authorize! :create, @question

      if @question.question_type_id == QuestionType.find_by(title: 'Yes/No').id
        @question.answers = [Answer.find_by(title: 'Yes'), Answer.find_by(title: 'No')]
      end