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: report_controller.rb
    path of file: ./repos/retrospring/app/controllers/ajax
    
    the code of the file until where you have to start completion: class Ajax::ReportController < AjaxController
  def create
    params.require :id
    params
    
  def create
    params.require :id
    params.require :type

    @response[:status] = :err

    unless user_signed_in?
      @response[:status] = :noauth
      @response[:message] = t(".noauth")
      return
    end