Rails.application.routes.draw do devise_for :users, controllers: {registrations: :registrations} namespace :management do root 'welcome#index' # statistics get 'statistics/', to: 'statistics#index', as: 'index_statistics' get 'statistics/users/' => 'statistics#users', as: 'users_statistics' get 'statistics/collections' => 'statistics#collections', as: 'collections_statistics' get 'statistics/accesses' => 'statistics#accesses', as: 'accesses_statistics' get 'statistics/downloads' => 'statistics#downloads', as: 'downloads_statistics' resources :users resources :highlights end root 'welcome#index' resources :universities resources :countries get '/faq' => 'welcome#faq' get '/contact' => 'welcome#contact', as: 'contact' get '/complaint' => 'welcome#complaint', as: 'complaint' end