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 1 year has passed since last update.

エラー:deviseログアウトできない問題 Couldn't find User with 'id'=sign_out

Posted at

内容

ログアウトリンクからログアウトすると画像のエラー
スクリーンショット 2023-06-09 22 21 36
parameterがおかしい

解決まで

routes指定、

routs.rb
  devise_for :users
  devise_scope :user do
    get '/users/sign_out' => 'devise/sessions#destroy'
  end

ログアウト、ログイン機能するようになりました。

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?