# Updated Soap4r for use with Rails App on a host

**URL:** <https://www.ruby-forum.com/t/updated-soap4r-for-use-with-rails-app-on-a-host/69107>\
**Category:** Rails\
**Created:** [September 18, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/updated-soap4r-for-use-with-rails-app-on-a-host/69107 "2006-09-18T18:14:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 18, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/updated-soap4r-for-use-with-rails-app-on-a-host/69107/1 "2006-09-18T18:14:29Z")

</div>

I need to use the lastest build of the soap4r on my rails app hosted at  
TextDrive. I have put the soap4r files into vendors and was hoping to  
append the dir to the lookup path doing:

$:.unshift("#{RAILS\_ROOT}/vendor/soap4r/lib")

Unfortunately, it seems to be using the files in  
/usr/local/lib/ruby/1.8. Am I missing something here to get this  
working?

Cheers,  
Nicholas

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 26, 2006, 4:49pm UTC](https://www.ruby-forum.com/t/updated-soap4r-for-use-with-rails-app-on-a-host/69107/2 "2006-09-26T16:49:14Z")

</div>

Ok, so all I needed to do was put

$:.unshift("#{RAILS\_ROOT}/vendor/soap4r/lib")

in the Rails::Initializer.run block in environment.rb (I was putting  
it outside the block previously)
