module OfficingHelper def booths_for_officer_select_options(officer_assignments) options = officer_assignments.map do |oa| [oa.booth_assignment.booth.name.to_s, oa.id] end options.sort_by! { |x| x[0] } options_for_select(options, params[:oa]) end end