Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8520243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:28:49+00:00 2026-06-11T06:28:49+00:00

I have 2 models: Users Suppliers and I want to provide 2 isolated Active

  • 0

I have 2 models:

  • Users
  • Suppliers

and I want to provide 2 isolated Active Admin interfaces.
They both have devise routes:

devise_for :users, ActiveAdmin::Devise.config
devise_for :suppliers,   ActiveAdmin::Devise.config (can I somehow say ActiveAdmin2::Devise.config)

User will have access to Products, Orders and Supplier will have access to products only.

Ideally, I want to have different Folders in the app and present different data.

user/order.rb

ActiveAdmin.register Order do
  filter :email
  filter :created_at  , :label => "Order Creation Date"
  filter :order_created

supplier/order.rb

ActiveAdmin.register Order do
  filter :email

Is there any way to initialize 2 ActiveAdmin Classes and run them in parallel?

Any other better way to make it work under the same website/app?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:28:50+00:00Added an answer on June 11, 2026 at 6:28 am

    You can use namespaces for this.

    ActiveAdmin.register Order, namespace: :supplier do
      # will be available at /supplier/orders
    end
    
    ActiveAdmin.register Order, namespace: :user do
      # available at /user/orders
    end
    

    You can customize the authentication for each namespace in config/initializers/active_admin.rb

    For example:

      config.default_namespace = :user
    
      config.namespace :supplier do |supplier|
        supplier.authentication_method = :authenticate_supplier_user!
        supplier.current_user_method = :current_supplier_user
        supplier.logout_link_path = :destroy_supplier_user_session_path
        supplier.root_to = 'orders#index'
      end
    
      config.namespace :user do |user|
        user.authentication_method = false
        user.current_user_method = :current_user
        user.logout_link_path = false
    

    More info on: http://activeadmin.info/docs/1-general-configuration.html#namespaces

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 models Users(devise gem) and Profiles where class User < ActiveRecord::Base has_one
Here is my problem in codeigniter MVC. Suppose I have 3 models: (users, email
I have these models: class UserProfile(models.Model): user = models.OneToOneField(User) #etc class Organization(models.Model): users =
I have 3 models sites, user_favorites and users. Relevant relationships: class Site < ActiveRecord::Base
I have three models: class Book < ActiveRecord::Base has_many :collections has_many :users, :through =>
I have two models - Tenant and User, each tenant will have_many users and
I have a working HABTM association between the models Posts and Users... the posts_users
I have two models Users and Roles . I have setup a many to
Suppose I am doing matchmaking of users and games. I have models containing users
I have 2 models.py files in different app directories: users.models.py and friends.models.py. There is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.