nateleavitt/infusionsoft — Issue #2: uninitialized constant Infusionsoft::Client::Search (NameError) when Rails loads
Author: bobcalco
Created: 2011-11-01 15:32:00+00:00
State: open

I have installed using 'bundle install' after adding gem 'infusionsoft' in my Gemfile. I have also, as instructed, created config/initializers/infusionsoft.rb and added the URL and api key configuration as shown (using my specific details). Now, every command I run with rails (e.g., 'rails generate migration AddXyzModel') bombs out with:

$ rails generate migration AddContentManagement
/usr/local/lib/ruby/gems/1.9.1/gems/infusionsoft-1.0.4/lib/infusionsoft/client.rb:25:in `': uninitialized constant Infusionsoft::Client::Search (NameError)
from /usr/local/lib/ruby/gems/1.9.1/gems/infusionsoft-1.0.4/lib/infusionsoft/client.rb:5:in `'
from /usr/local/lib/ruby/gems/1.9.1/gems/infusionsoft-1.0.4/lib/infusionsoft/client.rb:1:in `'
from /usr/local/lib/ruby/gems/1.9.1/gems/infusionsoft-1.0.4/lib/infusionsoft.rb:2:in `'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `block in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler.rb:120:in `require'
from /home/ellel/projects/ellel/apps/web/rails/ellel-cloud/config/application.rb:7:in `'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:21:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:21:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'

This is running Rails 3.1.1.