0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

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

Posted at

こんな感じ

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というメソッドができていた。

devise_for :users, skip: :all

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?