How do I add a new Admin user to ActiveAdmin?

Asked 2 years ago, Updated 2 years ago, 87 views

Rails is using Active Admin. I forgot my initial ID and password. How do I add new admin users?

activeadmin ruby-on-rails

2022-09-21 18:11

1 Answers

railsc and enter the console.

AdminUser.create!(:email => '[email protected]', :password => 'password', :password_confirmation => 'password')

You can type it like this.


2022-09-21 18:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.