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.

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

2 Comments

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
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 stackoverflow.com/questions/7281047/…
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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.