0
votes

I have successfully installed and configured devise with an admin model with "option 1" of this instruction.

After installing rails_admin and visiting localhost:3000/admin I meet a login page wich is asking for an email and password. Since I have not set an admin email/password I am essentially locked out of rails_admin.

How can I register an admin email/password with rails_admin?

2
correct me if I'm wrong, I installed rails-admin on an Admin model. Should I have installed rails-admin on the Users model If I want to track users? - LightBox

2 Answers

1
votes

run on command prompt: rake db:seed then you can access with email [email protected] and password: "administrator".

0
votes

I followed @Ganeshkunwar advice and ran rake db:seed but added the following to my seeds.rb

admin_model     = RailsAdmin::AbstractModel.new(Admin)
admin_model.new(:email => '****@****.com', :password => '****', :password_confirmation => '****').save

Thanks SO!