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: surveys_controller.rb
    path of file: ./repos/rapidfire/app/controllers/rapidfire
    
    the code of the file until where you have to start completion: module Rapidfire
  class SurveysController < Rapidfire::ApplicationC
    
    def destroy
      @survey = Rapidfire::Survey.find(params[:id])
      @survey.destroy

      respond_to do |format|
        format.html { redirect_to surveys_path }
        format.js
      end
    end