def index(options = {})
      options[:query] ||= []
      @page = (params[:page] || 1).to_i
      @route_name ||= @controller_name ||= controller_name

      @iterator = CEO::Iterator.new(
        thing,
        query: options[:query],
        current_page: @page,
        per_page: options.fetch(:per_page, 20),
        filters: {
          only: options[:only],
          except: options[:except]
        }
      )

      @things = @iterator.all || []
      @total_pages = @iterator.total_pages

      @model_name ||= thing.to_s.underscore
      @human_model = @model_name.humanize
      @title = thing.to_s.titleize.pluralize
      render 'admin/index'
    end
def index(options = {})
      options[:query] ||= []
      @page = (params[:page] || 1).to_i
      @route_name ||= @controller_name ||= controller_name

      @iterator = CEO::Iterator.new(
        thing,
        query: options[:query],
        current_page: @page,
        per_page: options.fetch(:per_page, 20),
        filters: {
          only: options[:only],
          except: options[:except]
        }
      )

      @things = @iterator.all || []
      @total_pages = @iterator.total_pages

      @model_name ||= thing.to_s.underscore
      @human_model = @model_name.humanize
      @title = thing.to_s.titleize.pluralize
      render 'admin/index'
    end
GET /things
 Public: Indexes all things in the model.

 Uses pagination by default.

 Sets several variables and renders to a view.