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
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’ generatorI 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs