Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i use activeadmin inside mountable rails engine #4069

Closed
nazrulcse opened this issue Aug 13, 2015 · 5 comments
Closed

How can i use activeadmin inside mountable rails engine #4069

nazrulcse opened this issue Aug 13, 2015 · 5 comments

Comments

@nazrulcse
Copy link

I want to integrate active admin into my mountable rails engine. my configuration:
gem 'activeadmin'
gem 'devise'

My Engine:

module AuthForum
  class Engine < ::Rails::Engine
    isolate_namespace AuthForum
    initializer :auth_forum do
      ActiveAdmin.application.load_paths += Dir[File.dirname(__FILE__) + '/admin']
      require 'jquery-ui-rails'
    end
  end
end

Engine Routes:

AuthForum::Engine.routes.draw do
  root 'welcome#index'
  resources :posts
  ActiveAdmin.routes(self)
  devise_for :users, module: :devise
  mount Forem::Engine, :at => '/forums'
end

Mount the engine to a application like

mount AuthForum::Engine => '/'

active admin resources located at app/auth_forum//admin directory.

when i try to access admin like http://localhost:3000/admin then it return me error
uninitialized constant AuthForum::Admin

I am stuck here from 7 days. Could you please help me out?

Thank you

@nazrulcse
Copy link
Author

Hi @timoschilling
Any update, I am still stuck here. please give me some instruction so that i can continue.
Thank you.

@timoschilling
Copy link
Member

timoschilling commented Aug 18, 2015

I have never used that before by myself, so I need to test it.

@varyonic
Copy link
Contributor

Two gems that do this are CommunityEngine and PageFlow

@risinglf
Copy link

risinglf commented Jul 9, 2017

@nazrulcse did you solve this problem with a solution?

@fuxinhao-crypto
Copy link

@varyonic do you know how to fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants