I am trying to install activeadmin with two namespaces in the last 4 hours and I have no luck.
I want two namespaces. "admin" and "admin_unit".
I would suggest that I would have the app / admin and app / admin_unit directories.
For the admin namespace, I would like to use the default authentication, and for the admin_unit namespace I have the current_user method that I need to use.
I tried to wrap the whole configuration in the active_admin configuration with namespaces, and I tried to manually create the files, etc., but every time I had problems.
Activeadmin has changed so much over the past year, Iโm afraid that half of the instructions I saw are out of date. And not one of them is complete. The documentation is only partially in the namespace.
Does anyone have step-by-step instructions for installing these two namespaces from start to finish? I would be very grateful for the help in this!
EDIT
When I go to start the server (or in this case I try to use route rails), I get this error:
Expected /app/active_admin/admin/dashboard.rb to define Admin::Dashboard (LoadError)
dashboard.rb has this in it:
ActiveAdmin.register_page "My Page", :namespace => :admin do content do para "Hello World" end end
I also tried without a namespace:
ActiveAdmin.register_page "My Page" do content do para "Hello World" end end
FYI I added the directory "active_admin" and placed directories with names there. I added both download paths (thanks for that).
Does this error have any connection with the new dashboard pages? I am going to learn how they work further.
Thanks guys! Thanks for your work Gregg, I have now used AA on dozens of applications and love it!
EDIT IMAGE
Well, in the latest release, I found that removing two directories with the names activeadmin from the "active_admin" directory that I created fixed the problem. I'm not sure that this would not work ... but well, I have spent enough cycles on this problem and am ready to move on.
Hope this helps someone else.