Can't create new rails project behind proxy

When I run:
rails new <app_name>

I get the following error:
Fetching source index for
Could not reach rubygems repository
Could not find gem ‘turn (>= 0) x86-mingw32’ in any of the gem sources
listed in your Gemfile.

I think the problem is that I’m behind a proxy. How can I get the
rails command to use a proxy?

On Wed, Jan 11, 2012 at 4:27 PM, Josh J. [email protected] wrote:

rails command to use a proxy?

Assuming you are on Windows, this is the first match that came up
for Google, seems quite relevant:

I think the more relevant keywords for a search are “ruby gems through a
proxy” or
“bundler through a proxy” (I mean, it would be the Gem class or bundler
gem that are
responsible for fetching the gems, If I understand correctly …).

E.g. complete outside of rails, you could have a directory with only a
Gemfile in it

source ‘

gem ‘ansi’

and run bundle install in that directory to debug your problem.




Peter V.
gsm: +32-478-27.40.69
e-mail: [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs