无法生成 cancan:ability

Can't generate cancan:ability

在 rails gem 文件的 ruby 中,我添加了 gem 'cancancan'、'~> 1.10',然后 运行 捆绑安装然后 rails g cancan:ability.

这是我在控制台中得到的

Running via Spring preloader in process 3455
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--jbuilder'; got true (boolean)
Expected boolean default value for '--markerb'; got :erb (string)
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--helper'; got true (boolean)
Expected string default value for '--assets'; got true (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Could not find generator 'cancan:ability'. Maybe you meant 'channel', 'coffee:assets' or 'css:assets'
Run `rails generate --help` for more options.

已运行 'spring stop' 命令,问题已解决。