Alex Gordon
Alex Gordon

Reputation: 60892

ruby script\generate controller NOT WORKING

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..

Upvotes: 0

Views: 1227

Answers (2)

ccheneson
ccheneson

Reputation: 49410

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

Upvotes: 1

Redbeard
Redbeard

Reputation: 1018

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.

Upvotes: 1

Related Questions