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: officing_helper.rb
    path of file: ./repos/consuldemocracy/app/helpers
    
    the code of the file until where you have to start completion: module OfficingHelper
  def booths_for_officer_select_options(officer_assignments)
    options = []
    officer_ass
    
  def booths_for_officer_select_options(officer_assignments)
    options = []
    officer_assignments.each do |oa|
      options << [oa.booth_assignment.booth.name.to_s, oa.id]
    end
    options.sort_by! { |x| x[0] }
    options_for_select(options, params[:oa])
  end