How to configure rails_admin for Multiple Admins. How do i create Multiple admins using rails_admin gem.I created single admin for my rails application.I don't know how to create and configure another admin.
Please find below steps to create new admin user.
Go to terminal where project folder resides run following command
$rails console
You will get following console something like this
1.9.3-p448 :001 >
Run following create statement on console
admin = AdminUser.create! do |u| u.email = 'sample@sample.com' u.password = 'password' u.password_confirmation = 'password' end
you can specify any email and password here
This will create new admin user for Rails_admin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.