Script/generate --pretend; Won't

Cannot pretend:

ruby script\generate --pretend controller entryform index
Couldn’t find ‘–pretend’ generator

I just wanted to see what files it would generate…

Warren Fred

Warren S. wrote:

Cannot pretend:

ruby script\generate --pretend controller entryform index
Couldn’t find ‘–pretend’ generator

I just wanted to see what files it would generate…

Warren Fred

I get the same thing. Try appending --pretend to the end of the generate
command, instead. Example:

script/generate controller entryform index --pretend

That should do the trick.

Warren,

Despite what the command documentation says ( “Usage: script/generate
[options] generator [args]”), the usage is actually this:

-> script/generate generator [options] [args]

So you might want to try:

-> ruby script\generate controller --pretend entryform index

-christos