title: Two Namespaces of activeadmin
body: <p>I'm trying to install activeadmin with two namespaces for the past 4 hours and am having no luck.</p>
  
  <p>I want two namespaces. "admin" and "admin_unit".</p>
  
  <p>I would assume that I would have the app/admin and app/admin_unit directories.</p>
  
  <p>For the admin namespace, I would like to use the default devise authentication, and for the "admin_unit" namespace, I have a current_user method that I need to use.</p>
  
  <p>I've tried wrapping all the config in the active_admin config with namespaces, and i've tried manually creating the files etc. but every time I have some problem.</p>
  
  <p>Activeadmin has changed so much in the past year, I'm affraid half of the instructions i've seen are outdated. And none of them are complete. The documentation is only partially there on the namespacing.</p>
  
  <p>Does anyone have some step by step instructions on installing these two namespaces from start to finish? I would be very appreciative for some help on this!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>When I go to start server (or in this case im trying to rake routes), I get this error:</p>
  
  <pre><code> Expected /app/active_admin/admin/dashboard.rb to define Admin::Dashboard (LoadError)
  </code></pre>
  
  <p>dashboard.rb has this in it:</p>
  
  <pre><code>ActiveAdmin.register_page "My Page", :namespace =&gt; :admin do
    content do
      para "Hello World"
    end
  end
  </code></pre>
  
  <p>I've also tried with no namespace:</p>
  
  <pre><code>ActiveAdmin.register_page "My Page" do
    content do
      para "Hello World"
    end
  end
  </code></pre>
  
  <p>FYI I added a "active_admin" directory, and put both namespaced directories in there. I added both to the loadpaths (thanks for that).</p>
  
  <p>Does this error have anything to do with the new dashboard pages? I am going to look into how those work next.</p>
  
  <p>Thanks guys! Thanks for your work Gregg, I have used AA on dozens of apps now and love it!</p>
  
  <p><strong>EDIT FIX</strong></p>
  
  <p>Ok, on the last issue, I found that taking the two activeadmin namespaced directories out of the "active_admin" directory that I created fixed the problem. Not sure what that wouldn't work...  but oh well, i've spent enough cycles on this issue, and am ready to move on.</p>
  
  <p>Hope that helps someone else..</p>