I'm import the active_campaign gem into a controller like so (already included in my Gemfile and ran bundle install):
require 'active_campaign' class Website::MyController < ApplicationController def create client = ::ActiveCampaign::Client.new("url","api-key") # ... end end I get the following error:
LoadError in Website::MyController#create cannot load such file -- active_campaign
Removing the require 'active_campaign' line
After removing the require line, I now get:
NameError in Website::MyController#create uninitialized constant ActiveCampaign
How can I get this to work?
::ActiveCampaign::Client.new("url","api-key")useActiveCampaign::Client.new("url","api-key")bundle update?bundle update. Nothing's changed (same error)