Devise: Could not find generator 'devise:install'. Maybe you meant 'assets', 'generator' or 'coffee:assets'

Created on 8 Oct 2016  ·  6Comments  ·  Source: heartcombo/devise

I added gem 'devise' to the gemfile, then ran "bundle installed"
when I ran rails g devise:install, the following message appeared:

Could not find generator 'devise:install'. Maybe you meant 'assets', 'generator' or 'coffee:assets'

Any ideas?

Most helpful comment

Just putting it here coz this solution is so hard to find
https://github.com/plataformatec/devise/issues/4594
In rails 5, please try to run
spring stop
before you run
rails generate devise:install

All 6 comments

bundle install not installed

Yeah, looks like you didn't install gem properly. If you did we need sample app that reproduces this issue to help you. Thanks!

Just putting it here coz this solution is so hard to find
https://github.com/plataformatec/devise/issues/4594
In rails 5, please try to run
spring stop
before you run
rails generate devise:install

Thanks @jaspertomas your option worked for me in rails 5.2

I got the same error but nothing works for me

I got the same error but nothing works for me

the same happens to me

Was this page helpful?
0 / 5 - 0 ratings