0

I installed the Rails installer. Now I'm trying to create a new Rails project. When I do

C:\Sites> rails new demoproj

I get this error:

Fetching source index for http://rubygems.org/
Could not reach rubygems repository http://rubygems.org/
Could not find gem 'turn (>= 0)' in any of the gem sources listed in your Gemfile.
bobbymcr
  • 23,769
  • 3
  • 56
  • 67
sandyutd
  • 53
  • 2
  • 5

2 Answers2

1

I'm assuming you are installing rails over proxy. This maybe what you are looking for:

Add the given option to your gemrc file

gem: -p http//#{proxy-server}:#{port}

Creating a new rails 3 project over a proxy in windows

Community
  • 1
  • 1
lnguyen55
  • 737
  • 6
  • 16
  • thanks a lot friend, but i am not able to find gemrc file, is it same as C:\RailsInstaller\Ruby1.9.2\bin\gem file – sandyutd Sep 09 '11 at 22:23
  • I'm not Windows user so I'm not sure about this. try: _C:\ProgramData\gemrc_ for windows Vista/7. *The rc file needs to be created if not present* http://stackoverflow.com/questions/7281047/creating-a-new-rails-3-project-over-a-proxy-in-windows – lnguyen55 Sep 09 '11 at 22:26
0

in a general way, that problem means you need to do a bundle install. no clue if its a windows specific issue though, there should be an automatic bundle after it creates the project.

Matt Briggs
  • 41,224
  • 16
  • 95
  • 126