Rails.application.routes.draw do resources :news_posts root 'sessions#new' get '/home', to: 'static_pages#home' get '/about', to: 'static_pages#about' get '/login', to: 'sessions#new' post '/login', to: 'sessions#create' delete '/logout', to: 'sessions#destroy' resources :users do member do get :courses end end resources :conversations resources :conversation_participations resources :messages resources :schools resources :courses resources :course_participations resources :lectures resources :assignments do resources :submissions, shallow: true end resources :data_files do member do get :download end end end