Search code examples
ruby-on-railseventbrite

Uninitialized constant while using gem in rails


I am trying to run the following code to initialize the official EventbriteClient

eb_client = EventbriteClient.new(eb_auth_tokens)

however, I faced the uninitialized constant WelcomeController::EventbriteClient

I double checked and confirmed gem is installed.


Solution

  • Seems like you forget to add this gem to your Gemfile:

    gem 'EventbriteClient'