orka
orka

Reputation: 35

script/generate on Windows: 'script' is not recognized as an internal or external command

Whenever I try to use the Rails script/generate or script/install command I get this kind of error:

C:\workspace>script/generate bigcommand
'script' is not recognized as an internal or external command,
operable program or batch file.

Any idea why?

Upvotes: 3

Views: 3106

Answers (2)

Lucas
Lucas

Reputation: 11

instead of using "script/generate" I used "generate" and it stopped giving me errors

Upvotes: 1

mark
mark

Reputation: 126

on windows, you probably need to invoke it like this: "ruby script\generate ..."

Upvotes: 11

Related Questions