<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic hubspot-api-client not working in Rails? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/hubspot-api-client-not-working-in-Rails/m-p/406708#M40282</link>
    <description>&lt;P&gt;I am trying to use the Hubspot API Ruby gem located here &lt;A href="https://github.com/HubSpot/hubspot-api-ruby#installation" target="_blank" rel="noopener"&gt;https://github.com/HubSpot/hubspot-api-ruby#installation&lt;/A&gt;, but I am having issues with Ruby on Rails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For all of my other gems, I can just simply add the gem in the Gemfile and it works within the application, but not this case and I cannot figure out why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, here's what I have in my Gemfile:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;# HubSpot API Client
gem 'hubspot-api-client'&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I have ran `bundle install` and it installed successfully, but I still can't use that gem. If I load the gem via the `irb` console, then it works just fine.&lt;/P&gt;&lt;P&gt;Here's what I mean:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;Using IRB&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;root@8af3866a29c8:/myapp# irb
irb(main):001:0&amp;gt; require 'hubspot-api-client'
=&amp;gt; true
irb(main):002:0&amp;gt; Hubspot
=&amp;gt; Hubspot&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;EM&gt;Using Rails Console&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;root@8af3866a29c8:/myapp# rails c
Running via Spring preloader in process 6589
Loading development environment (Rails 5.2.4)
irb(main):001:0&amp;gt; require 'hubspot-api-client'
Traceback (most recent call last):
1: from (irb):1
LoadError (cannot load such file -- hubspot-api-client)
irb(main):001:0&amp;gt; Hubspot
Traceback (most recent call last):
1: from (irb):1
NameError (uninitialized constant Hubspot)
irb(main):002:0&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Why does this happen and how do I fix this?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 17:06:00 GMT</pubDate>
    <dc:creator>altjx</dc:creator>
    <dc:date>2021-02-05T17:06:00Z</dc:date>
  </channel>
</rss>

