Devise: Could not find generator devise:install

Created on 2 Jan 2011  路  11Comments  路  Source: heartcombo/devise

rails generate devise:install i ran it on terminal

and i am getting this error

Could not find generator devise:install

Most helpful comment

https://github.com/plataformatec/devise/issues/4594
In rails 5, please try to run
spring stop
before you do
rails generate devise:install

All 11 comments

this was a problem 5 minutes ago the solution is:-
when u create a new rails project like :
$rails new myProject
than go to folder myProject and open file named (Gemfile)
and under { gem 'rails', '3.0.3'} add :-
gem ''devise'
now run the generator in terminal in the directory myProject:-
and u are done

worked like charm,,,... thanks

For me it's not working. I'm using rails 4.2.1 and I added the Gem "devise" to Gemfile, and bundle install ant when i put "rails generate devise:install " it says the same error...

Same problem.

Same problem I always get this: Could not find generator 'devise:install'. Maybe you meant 'assets', 'generator' or 'coffee:assets'
Run rails generate --help for more options.

I fixed it by adding the following line to my Gemfile:

gem 'devise'
After adding that line, I executed bundle install
http://stackoverflow.com/questions/24889925/cant-install-devise

Double check that you saved the Gemfile after adding:
gem 'devise'

https://github.com/plataformatec/devise/issues/4594
In rails 5, please try to run
spring stop
before you do
rails generate devise:install

Make sure you're in the correct project within your code editor. It makes all the difference in the world!

I have Ruby 5.2

add gem 'devise', '~> 4.2' under Gemfile and
run bundle on the terminal or CMD..
Then rails g devise:install

you will see something like 4. You can copy Devise views (for customization) to your app by running:

   rails g devise:views

=========================================

Just a note for those Googling:
If you have it in our gemfile already and have bundle installed ok- check to make sure you don't have spring running: ps aux | grep spring.
If you do, you may need to kill the process- this keeps and uses existing rails processes to be faster in dev mode.
Killing that process allowed this to work for me.

Was this page helpful?
0 / 5 - 0 ratings