If you are getting similar error to this one:
Nothing found: Network problem> Check NetBeans proxy settings. ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 407 fetching http://gems.rubyforge.org/yaml
this article might help you: Run gem install behind a firewall in Windows
See also this thread on users@ruby.netbeans.org mailing list.
My Windows PC connects to the internet using Microsoft Firewall Client via Windows Server 2003, with ISA 2004. I was already able to download plug-ins through NetBeans, but not gems. Based in part on the above article...
I downloaded the Ruby Win32 SSPI gem to my root ditrectory on C: from here: http://rubyforge.org/projects/rubysspi/
I installed the gem from the command line, navigating to the directory containing gem.bat (eg C:\Program Files\NetBeans 6.1\ruby2\jruby-1.1\bin), then typed:
gem install c:\rubysspi-1.2.3.gemDespite what the article says, I found there was no need to modify gem.bat, or so set up my user name or password anywhere. You can test if you now have connectivity using this command:
gem list rails -rOnce this was set up, NetBeans would download the gems.
As an aside, when using Ruby on Rails with NetBeans, when you run the application, a web page is loaded http://localhost:3000/. I think when Microsoft Firewall Client is used, localhost is the server with ISA 204 on it - you need to specify the IP address of your PC, eg: http://192.168.0.23:3000/