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: lookups_controller.rb
    path of file: ./repos/circulate/app/controllers/admin/members
    
    the code of the file until where you have to start completion: module Admin
  module Members
    class LookupsController < BaseC
    
      def show
        @member = Member.find(params[:member_id])
        @lookup = Lookup.new(lookup_params)

        if @lookup.valid?
          @loan = Loan.lend(@lookup.item, to: @member)
          @item = @lookup.item
        else
          render partial: "admin/members/lookups/form", status: :unprocessable_entity, locals: {lookup: @lookup}
        end