title: Route a controller to namespace :admin to /admin
body: <p>I feel like this may be a dumb question, but it's late and my head is melting a bit.. So I appreciate the assistance.</p>
  
  <p>I'm trying to map the url <a href="http://localhost:3000/admin">http://localhost:3000/admin</a> to a dashboard controller but i'm epically failing. Maybe this isn't even possible or the completely wrong idea but anyway my routes looks like this and yes </p>
  
  <pre><code>namespace :admin do
    resources :dashboard, { :only =&gt; [:index], :path =&gt; '' }
    ...
  end
  </code></pre>
  
  <p>and my simple dashboard_controller.rb</p>
  
  <pre><code>class Admin::DashboardController &lt; ApplicationController
    before_filter :authenticate_user!
    filter_access_to :all
  
    def index
      @schools = School.all
    end
  end
  </code></pre>
  
  <p>and my view is located in views/admin/dashboard/index.html.erb</p>
  
  <p>thanks for any input</p>