jQueryが無効なRailsでDeviseのサインアウト(GETメソッド)を定義する


こんな感じ

config/routes.rb
Rails.application.routes.draw do
  root 'page#index'
  devise_for :users do
  end
  devise_scope :user do
    get '/users/sign_out' => 'devise/sessions#destroy'
  end
end

いつの間にかdevice_scopeというメソッドができていた。
- Method: ActionDispatch::Routing::Mapper#devise_for

devise_for :users, skip: :all

とやるとdevise_scopeで取捨選択して定義できる模様