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: zipcodes_controller.rb
    path of file: ./repos/circulate/app/controllers/admin/reports
    
    the code of the file until where you have to start completion: require "csv"

module Admin
  module Reports
    class ZipcodesController < BaseController
      def index
        @data = Member.open.group(:postal_code).order(:postal_code).count
        respond_to do |format|
          format.html

          format.csv do
            text = CSV.generate(headers: true) { |csv|
              csv << %w[zipcode count]

  
    
      def index
        @data = Member.open.group(:postal_code).order(:postal_code).count
        respond_to do |format|
          format.html

          format.csv do
            text = CSV.generate(headers: true) { |csv|
              csv << %w[zipcode count]

              @data.each do |postal_code, count|
                csv << [postal_code, count]
              end
            }

            filename = Time.current.strftime("zipcodes_%-m/%-d/%Y.csv")
            send_data text, filename: filename
          end
        end
      end