ruby on rails - Multiple rails_admin -


how configure rails_admin multiple admins. how create multiple admins using rails_admin gem.i created single admin rails application.i don't know how create , configure admin.

please find below steps create new admin user.

  1. go terminal project folder resides run following command

    $rails console

  2. you following console this

    1.9.3-p448 :001 >

  3. run following create statement on console

    admin = adminuser.create! |u| u.email = 'sample@sample.com' u.password = 'password' u.password_confirmation = 'password' end

    you can specify email , password here

    this create new admin user rails_admin


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -