0

I am following this tutorial and I've run the command ruby script\server and successfully started the server.

Now, when I run ruby script\generate controller MyTest, it says

'ruby' is not recognized as an internal or external command..
3
  • Are you in Windows? I've not once seen backslashes outside of the Windows environment, but I'm also surprised that you're not required to type, like, ruby.exe Commented Mar 3, 2010 at 22:27
  • Can you give the URL of the tutorial you are using (if it s an online tutorial)? Commented Mar 3, 2010 at 22:29
  • oreilly.com/pub/a/ruby/archive/rails.html?page=2 Commented Mar 3, 2010 at 22:30

2 Answers 2

1

This error message means

  • you dont' have ruby installed (It's on page 1 of your tutorial)

or

  • ruby is not in your PATH . In that case, check if the PATH points to the folder where you have installed ruby (on Windows I think it's PATH)

Edit:

If you look at the screenshots of the 1st page, the path to ruby is specified all the time "c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install rails

I did install it on my netbook - I specified to update my PATH but it didnt. After setting up my path correctly, I could type: gem install rails

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

1 Comment

hum That's what I was wondering too. If you could run 'rails cookbook', then it's there . Sorry for the noise
1

Sounds like you either haven't installed ruby or it hasn't been added to your PATH environment variable. Use the link text from this page and make sure you open the cmd.exe console AFTER you installed Ruby.

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.