Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug_タイムアウトのアラートtrue が表示される #5

Closed
ta-tabox opened this issue Nov 14, 2021 · 2 comments
Closed

bug_タイムアウトのアラートtrue が表示される #5

ta-tabox opened this issue Nov 14, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ta-tabox
Copy link
Owner

バグ報告

概要

セッションタイムアウト時にclass= "alert-timeout"の"true"というメッセージが表示される

再現手順

セッションタイムアウト時に再びアプリケーションにアクセスする

原因

timeout時にflashメッセージが作成されていると考えられる

修正案

参考情報

deviseの影響範囲だと思うので、deviseを確認する

@ta-tabox ta-tabox added the bug Something isn't working label Nov 14, 2021
@ta-tabox
Copy link
Owner Author

GitHub Isuueにて解決済みのよう
heartcombo/devise#1777

unless msg_type == :timedout

flash.except(:timedout).each do |msg_type, message|

上記の方法を試してみる

@ta-tabox
Copy link
Owner Author

<% flash.each do |message_type, message| %>
<% next unless message.is_a? String %>

<%= message %>

<% end %> で直った

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant