简体   繁体   中英

Multiple rails_admin

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.

  1. Go to terminal where project folder resides run following command

    $rails console

  2. You will get following console something like this

    1.9.3-p448 :001 >

  3. 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM