Rails.application.routes.draw do
  # root to #index action of global controller
  root 'welcome#index'

  # login (sessions) routes with named helpers
  get '/login' => 'sessions#new', as: 'login_form'
  post '/login' => 'sessions#create', as: 'login'
  destroy '/logout' => 'sessions#destroy', as: 'logout'

  # user routes with named helpers (just #new and #create actions)
  get '/users/new' => 'users#new', as: 'signup_form'
  post '/users' => 'users#create', as: 'signup'

  # nested users and projects resources
  resources :users do
    resources :projects
  end
end

Rails.application.routes.draw do
  # root to #index action of global controller
  root 'welcome#index'

  # login (sessions) routes with named helpers
  get '/login' => 'sessions#new', as: 'login_form'
  post '/login' => 'sessions#create', as: 'login'
  delete '/logout' => 'sessions#destroy', as: 'logout'

  # user routes with named helpers (just #new and #create actions)
  get '/users/new' => 'users#new', as: 'signup_form'
  post '/users' => 'users#create', as: 'signup'

  # nested users and projects resources
  resources :users do
    resources :projects
  end
end

Change incorrect route mapper from 'destroy' to 'delete.'
Change incorrect route mapper from 'destroy' to 'delete.'
