HTTP Proxy Support in ActiveResource 2

Posted by Marshall Huss Sat, 31 Oct 2009 16:53:00 GMT

For those of you stuck in the corporate world who are forced behind a proxy server you have probably felt the pain from lack of proxy support in the Ruby world. There are many libraries that don't yet support proxies and until recently ActiveResource was one of them. In August the Rails community and RailsBridge hosted the first Rails BugMash where, according to the Rails Weblog, there were over 300 commits.

Luckily I was able to find some time during the event to create a patch which added proxy support to ActiveResourceWorking in a corporate environment and not having baked in proxy support had caused me much pain in the past, hopefully, this patch will help others avoid those pains.

 It is really easy to set the proxy for your ActiveResource model...