来自的文件rails generate controller说:
[--helper] # Indicates when to generate helper
# Default: true
Run Code Online (Sandbox Code Playgroud)
现在,它没有指定如何指示值.因此,由于默认值为true,这意味着排除它不会指示false,因为... true是默认值.所以它必须是--helper=false或者--helper false,但我尝试了两者,并且它们都导致了error false [not found]
好消息是它没有生成助手,因为它很混乱,所以我仍然得到了我想要的结果:)