I get the following error:
no such file to load -- soap4r
But I have already done a gem install soap4r…multiple times to make sure.
Why am I getting this error and what can I do to fix it?
no such file to load -- soap4r
c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
I had the same problem in a Rails application when I included the soap4r inside the config block in environment.rb.
I got rid of the error when I moved it to the top of the file, before the initializer block.
This is what I have:
This, inside the initializer block, gave me errors: