Getting rails console working behind a proxy server

Hello all,

I am trying to work with the rails console (in Windows environment)
while being behind a company firewall, connected to the Internet via a
proxy server.

I have the http_proxy environment properly set, so that for instance
gem and wget commands properly, but everything I do try to do in a
rails console fails, if there is a need to connect to the internet.
All connections simply time out.

Is there a way to force the rails console to use a proxy server for connections?

Thanks for help,

Jakub