# Ruby client not working for Deals

**URL:** <https://community.hubspot.com/t/ruby-client-not-working-for-deals/71406>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [December 16, 2022, 4:03pm UTC](https://community.hubspot.com/t/ruby-client-not-working-for-deals/71406 "2022-12-16T16:03:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fairerweather](https://avatars.discourse-cdn.com/v4/letter/f/2bfe46/32.png) [@fairerweather](https://community.hubspot.com/u/fairerweather)\
**Post date:** [December 16, 2022, 4:03pm UTC](https://community.hubspot.com/t/ruby-client-not-working-for-deals/71406/1 "2022-12-16T16:03:25Z")

</div>

Hi, I have successfully implemented the hubspot-api-ruby gem ([GitHub - HubSpot/hubspot-api-ruby: HubSpot API Ruby Client Libraries for V3 version of the API · GitHub](https://github.com/HubSpot/hubspot-api-ruby)), and am able to read contact information using the client and my access token. I am also able to create deals using the endpoint.

When I try to update a deal, however, the gem gives mysterious error messages.

Following the example on the API docs ([Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/deals)) I have done:

body = { properties: properties } # properties is a hash of properties

@client.crm.deals.basic\_api.update({ dealId: “11368960786”, body: body })

This gives the error:

LoadError: cannot load such file -- hubspot/codegen/crm/deals/models/deal\_id

I also get the exact same error when running

client.crm.deals.associations\_api.create

**No errors on create**

Strangely, I do **not** get this error when I run

@client.crm.deals.basic\_api.create(body: body.

This request is formatted exactly the same, works perfectly and connects to the API.

There seems to be something wrong with the methods that involve looking up the deal with the deal\_id. Has anyone ever seen this before?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 19, 2022, 9:39pm UTC](https://community.hubspot.com/t/ruby-client-not-working-for-deals/71406/2 "2022-12-19T21:39:34Z")

</div>

Hi, @fairerweather 👋 Have you tried asking the team that maintains this repo? [https://github.com/HubSpot/hubspot-api-ruby](https://github.com/HubSpot/hubspot-api-ruby) In my experience they do not post here but are active in updating and maintaining the repository — [https://github.com/HubSpot/hubspot-api-ruby/issues](https://github.com/HubSpot/hubspot-api-ruby/issues)

Best,

Jaycee
