def index_path(model_class, url_params: {})
      if url_params.is_a?(::ActionController::Parameters) \
        && !url_params.permitted?
        url_params = {}
      end

      url_for url_params.to_h.reverse_merge(
        resources: to_resources_name(model_class),
        action: :index
      )
    end
def index_path(model_class, url_params: {})
      if url_params.is_a?(::ActionController::Parameters) \
        && !url_params.permitted?
        url_params = {}
      end

      url_for url_params.to_h.reverse_merge(
        resources: to_resources_name(model_class),
        action: :index
      )
    end
Url for index page
 @param model_class [Class]
 @param url_params [ActionController::Parameters, Hash]
 @return [String]