title: Rails 4 - How to match routes in namespace
body: <p>Hi i have admin panel controller and have many controller in admin panel.
  I want to match routes usually without namespace i've used</p>
  
  <pre><code>match ':controller(/:action(/:id))', :via =&gt; [:get, :post]
  </code></pre>
  
  <p>I want this in namespace controller my current</p>
  
  <p>router.rb</p>
  
  <pre><code>namespace :admin do
  
  get '', to: 'dashboard#index', as: '/'
  
  get 'dashboard/index'
  
  ##AUTHENTICATION
  get 'login/index'
  get 'login/logout'
  post 'login/attempt_login'
  get 'login/attempt_login'
  
  ##PAGES
  get 'pages/index'
  get 'pages/add_new'
  get 'pages/edit'
  post 'pages/create'
  post 'pages/update'
  post 'pages/task'
  get 'pages/task'
  
  ##USERS
  get 'users/index'
  get 'users/edit'
  get 'users/delete'
  get 'users/destroy'
  get 'users/update'
  get 'users/add_new'
  post 'users/create'
  post 'users/update'
  post 'users/task'
  
  #USER GROUPS
  get 'user_group/index'
  get 'user_group/add_new'
  get 'user_group/edit'
  post 'user_group/create'
  post 'user_group/update'
  post 'user_group/task'
  
  #USER GROUPS
  get 'access_sections/index'
  get 'access_sections/add_new'
  post 'access_sections/create'
  post 'access_sections/update'
  post 'access_sections/task'
  
  end
  </code></pre>
  
  <p>Any solution please?</p>