刘月林 | No route matches [GET] “/users/sign_out”

刘月林 | No route matches [GET] “/users/sign_out”_第1张图片

刘月林 | No route matches [GET] “/users/sign_out”_第2张图片

刘月林 | No route matches [GET] “/users/sign_out”_第3张图片

config/routes.rb
+get '/users/sign_out' => 'devise/sessions#destroy' :

Rails.application.routes.draw do


  resources :projects
  resources :teams
  as :user do
    put '/user/confirmation' => 'confirmations#update', :via => :patch, :as => :update_user_confirmation
    get '/users/sign_out' => 'devise/sessions#destroy'
  end

  devise_for :users, controllers: {
    registrations: 'registrations',
    confirmations: 'confirmations'
  }

  root 'home#index'
end
刘月林 | No route matches [GET] “/users/sign_out”_第4张图片

刘月林
写于浙江宁波
2018/09/16

你可能感兴趣的:(刘月林 | No route matches [GET] “/users/sign_out”)