I want to create two admin views by using rails_admin gem. I created one admin and i specify the path( mount RailsAdmin::Engine => '/admin', :as => 'rails_admin' in routes.rb)
.
Similarly I specified another path (mount RailsAdmin::Engine => '/superadmin', :as => 'superadmin' )
.
Now I am getting the same views for both superadmin and admin view. I used devise and cancan for authentication.
But I want to seperate the model in 2 views. I don't know where to make changes.
In config/initializers/rails_admin.rb
I included some models but it is reflected in both admin views.
How to accomplish this?