Could not find generator 'devise:install'

1,233 views
Skip to first unread message

Ting-yu Huang

unread,
Jul 26, 2015, 6:31:38 AM7/26/15
to Devise
I follow the Getting started section in https://github.com/plataformatec/devise, and got a error when I enter

$ rails g devise:install
Could not find generator 'devise:install'. Maybe you meant 'assets', 'generator' or 'coffee:assets'
Run `rails generate --help` for more options.

There is no devise generator in my rails

rails generate --help
Usage: rails generate GENERATOR [args] [options]

General options:
  -h, [--help]     # Print generator's options and usage
  -p, [--pretend]  # Run but do not make any changes
  -f, [--force]    # Overwrite files that already exist
  -s, [--skip]     # Skip files that already exist
  -q, [--quiet]    # Suppress status output

Please choose a generator below.

Rails:
  assets
  controller
  generator
  helper
  integration_test
  jbuilder
  job
  mailer
  migration
  model
  resource
  scaffold
  scaffold_controller
  task

Coffee:
  coffee:assets

Js:
  js:assets

TestUnit:
  test_unit:generator
  test_unit:job
  test_unit:plugin



Here is my Gemfile

gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'

  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'

  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'

  gem 'devise', '~> 3.5.1'
end


Rails was installed via RVM

$ rails -v
Rails 4.2.3

$ gem -v
2.4.8


Did I miss something? Thanks!

Carlos Antonio da Silva

unread,
Jul 26, 2015, 7:55:43 AM7/26/15
to Devise

You probably shouldn't add devise to the development /test group, move it outside any groups.

Carlos Antonio da Silva - via celular

--

---
You received this message because you are subscribed to the Google Groups "Devise" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plataformatec-de...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ting-yu Huang

unread,
Aug 1, 2015, 12:45:12 AM8/1/15
to Devise
Yes, you are right! Problem solved and thanks a lot.

Carlos Antonio da Silva於 2015年7月26日星期日 UTC+8下午7時55分43秒寫道:
To unsubscribe from this group and stop receiving emails from it, send an email to plataformatec-devise+unsub...@googlegroups.com.

Carlos Antonio da Silva

unread,
Aug 1, 2015, 7:19:19 AM8/1/15
to Devise

No problem, glad that helped.

Carlos Antonio da Silva - via celular

To unsubscribe from this group and stop receiving emails from it, send an email to plataformatec-de...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "Devise" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plataformatec-de...@googlegroups.com.

LIKHITA VANJANGI

unread,
Nov 25, 2016, 2:24:52 AM11/25/16
to Devise
please help me to solve this problem:_ Could not find generator 'client_side_validations:install'. Maybe you meant 'int
egration_test', 'test_unit:integration' or 'test_unit:plugin'
Run `rails generate --help` for more options.


To unsubscribe from this group and stop receiving emails from it, send an email to plataformatec-devise+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "Devise" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plataformatec-devise+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages