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/consuldemocracy/app/controllers/admin/legislation
    
    the code of the file until where you have to start completion: class Admin::Legislation::QuestionsController < A
    
  def create
    @question.author = current_user
    if @question.save
      notice = t("admin.legislation.questions.create.notice", link: question_path)
      redirect_to admin_legislation_process_questions_path, notice: notice
    else
      flash.now[:error] = t("admin.legislation.questions.create.error")
      render :new
    end