# RubyGems

**URL:** <https://www.ruby-forum.com/t/rubygems/127822>\
**Category:** Rails\
**Created:** [February 1, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/rubygems/127822 "2008-02-01T16:21:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsierra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c37758/32.png) [@jsierra](https://www.ruby-forum.com/u/jsierra)\
**Post date:** [February 1, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/rubygems/127822/1 "2008-02-01T16:21:52Z")

</div>

Gems is proving to be the bane of my existence.

How do I use gems through a proxy? Is there a config file where I can  
specify this?

This particular machine I’m using is a Windows box (XP)… any  
help/advice would be much appreciated!

Thanks…

Jose

---

<div class="post-metadata">

**Author:** ![jsierra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c37758/32.png) [@jsierra](https://www.ruby-forum.com/u/jsierra)\
**Post date:** [February 1, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/rubygems/127822/2 "2008-02-01T16:31:59Z")

</div>

For anyone that find this thread and is wondering the same thing, here’s  
a solution…

> **[Gems through the proxy (or the «undefined method \`\[\]=’» error)](https://elia.wordpress.com/2007/07/18/gems-through-the-proxy-or-the-undefined-method-error/)**
>
> Ok, if you have tried to work with the gem command through a proxy, like gem install rails -p you surely incurred in the following error: ERROR: While executing gem … (NoMethodError) undefine…

Very easy to implement, and it works. I wonder why this isn’t a part of  
RubyGems to begin with…?

J
