title: Rails ActiveCampaign gem - wrong number of arguments (2 for 1)
body: <p>I am using the ActiveCampaign gem in Rails to connect to the ActiveCampaign API: <a href="https://github.com/RushPlay/active_campaign" rel="nofollow">https://github.com/RushPlay/active_campaign</a></p>
  
  <p>I am trying to perform a simple function: connect to the CRM and upload one contact. I've applied the following code:</p>
  
  <pre><code>ac = ActiveCampaign::Client.new('https://mywebsite.api-us1.com','mycode')
  ac.contact_sync({ "email" =&gt; "test@test.com","first_name" =&gt; "John","last_name" =&gt; "Doe" })
  </code></pre>
  
  <p>Unfortunately rails spits back the following error:</p>
  
  <pre><code>wrong number of arguments (2 for 1)
  
  active_campaign (0.1.9) lib/active_campaign/client.rb:15:in `initialize'
  </code></pre>
  
  <p>Any ideas what I could be doing wrong?</p>