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: results_controller.rb
    path of file: ./repos/peek/app/controllers/peek
    
    the code of the file until where you have to start completion: module Peek
  class ResultsController < ApplicationController
   
    
    def show
      respond_to do |format|
        format.json do
          if request.xhr?
            render json: Peek.adapter.get(params[:request_id])
          else
            render nothing: true, status: :not_found
          end
        end
      end