Can't generate cancan:ability

2019-09-11 09:39发布

In ruby on rails gemfile i added gem 'cancancan', '~> 1.10', then ran bundle install and after that rails g cancan:ability.

This is what i get in my console

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条回答
Juvenile、少年°
2楼-- · 2019-09-11 10:18

Runned 'spring stop' command and problem solved.

查看更多
登录 后发表回答