-
-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Description
I successfully created a collection by name ads_new. I am able to retrieve collections and documents with
@typesense.collections.retrieve
@typesense.collections['ads_new']
When I try import / upsert documents, I get the following errors.
@typesense.collections['ads_new'].documents.import(ads, action: 'create')
@typesense.collections['ads_new'].documents.upsert(ads.first)
uninitialized constant Typesense::Documents::ERB
Complete error :
/usr/local/bundle/gems/typesense-2.0.0/lib/typesense/documents.rb:78:in `endpoint_path': uninitialized constant Typesense::Documents::ERB (NameError)
#{Collections::RESOURCE_PATH}/#{ERB::Util.url_encode(@collection_name)}#{Documents::RESOURCE_PATH}#{operation.nil? ? '' : "/#{operation}"}
Steps to reproduce
Expected Behavior
documents must be successfully inserted.
Actual Behavior
Unable to insert docuements.
Metadata
Server - 27.1, gem - 2.0.0