[Rails] About error resolution when installing devise and activeadmin

I got an error when trying to create an admin screen in Rails.

error contents

Terminal


rails g devise install
rails g active_admin:install

Where you hit

method_missing': undefined method devise' for Install (call 'Install.connection' to establish a connection):Class (NoMethodError)

I got the error. Apparently devise is undefined? ??

I noticed later, The ": (colon)" in rails g devise: install is missing.

Solution procedure

Delete the contents of config/routes.rb once. Then run the rails db: rollback command. Run the rails g devise: install and rails g active_admin: install commands again. You have successfully installed devise and activeadmin.

Summary

Does an error occur just because the ":" is omitted? I thought, but I think it was no good because it was actually an error. Even the command without the colon was displayed as if the database was created, so I was fooled. From now on, we will do it properly including the colon.

Recommended Posts

[Rails] About error resolution when installing devise and activeadmin
[Rails] Error resolution when generating tokens with PAYJP
rails error resolution summary
[rails] About devise defaults
Error when using rails capybara
[rails] error during devise installation
[Rails] Unexpected validation error in devise
[Caution !!] Precautions when converting Rails devise and view files to haml
Consideration about Rails and Clean Architecture
About error when implementing spring validation
[Rails] About the error when displaying the screen due to the autofocus of the form
About virtualBox6.1.16, error resolution of shared folder when updating to CentOS Stream
How to resolve errors when installing Rails 5.1.3
[Rails] [Memo] When to add = to <%%> and when not
[rails s error] md5.bundle and mysql installation error
[Rails / Heroku] Error resolution procedure after push
About Rails 6
About devise
[Rails] devise
[Rails / ActiveRecord] About the difference between create and create!
The road to Japaneseizing Rails devise error messages
Error in bundle install when running rails new
[Rails] Solution when migration error occurs in acts-as-taggable-on
Rails <% = expression%> Why no error occurs when empty
[Rails] About collection when rendering partial (when loading partial template)
A note about the Rails and Vue process
[Rails] How to get success and error messages
[In team development] Error when moving to another member's branch and doing rails s [Rails]
Ruby on Rails Incorrect string value error resolution when posting a form in Japanese
[Beginner] Commands and knowledge that may be useful for error resolution when deploying AWS