views:

270

answers:

5

I am used to doing Rails development work on a Mac. However, now other developers will be working with me and they use Windows, both XP and Vista. I am trying to figure out the Windows environment so I can help them.

In OS X and Linux you have this kind of thing...

$ cd [Rails project root]
$ script/console

Tried it on Windows but all I got was "'script' is not recognized as an internal or external command...etc."

What is the Windows equivalent?

+8  A: 
ruby script/whatever

That should do it for you.

Matt Grande
+2  A: 

Does:

c:\railsproject\> ruby script/console

work for you?

Marcel Guzman
+1  A: 

Have you tried issuing ruby script\console ? (Windows uses backslashes as path delimeters instead of foreslashes and doesn't support shebang syntax.)

animal
+1  A: 

rails path/to/your/new/application

cd path/to/your/new/application

ruby script/server

Check this out: http://rubyonrails.org/download

Joshua Belden
+5  A: 

Get into your rails directory, then type:

ruby script/(your command)

Make sure that you have the path to ruby on your path - otherwise you need to do:

(path to ruby)/ruby script/(your command)
aronchick