Active Admin: Two pages for one model

activeadmin, ruby-on-rails

Solution

You can simply register your model twice but name it differently every time.

ActiveAdmin.register User, as: 'Employer' do
  # ...
end

ActiveAdmin.register User, as: 'Jobseeker' do
  # ...
end

Problem

My `User` model can create either an `Employer` or a `Jobseeker`, depending on whether the boolean `Employer` attribute is true or not. What I want to do is have separate pages for `Employer` and for `Jobseeker`, not just separate scopes. The pages will have completely different tables on. Many thanks!

Original source