无法生成康康:能力

时间:2017-01-16 19:48:20

标签: ruby-on-rails cancancan

在ruby on rails gemfile中我添加了gem'cancancan','〜> 1.10',然后运行捆绑安装,之后运行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.

1 个答案:

答案 0 :(得分:1)

Runned' spring stop'命令和问题解决了。