views:

130

answers:

2

this is my first exposure to rails so bare with me please

i am following this tutorial

http://oreilly.com/pub/a/ruby/archive/rails.html?page=2

i ran this command:

ruby script\server

i succesfully started the server

now when i run this: ruby script\generate controller MyTest

it says 'ruby' is not recognized as an internal or external command..

please help!

actually nothing works now

+1  A: 

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

ccheneson
why does the first part work and not the second then?
I__
hum That's what I was wondering too. If you could run 'rails cookbook', then it's there . Sorry for the noise
ccheneson
+1  A: 

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.

Redbeard