Rails.application.routes.draw do namespace :panel do namespace :calendar_new do namespace :back_end do resources :event_categories match 'events/agenda' => 'events#agenda', :as => :agenda resources :events end end end end