-
Notifications
You must be signed in to change notification settings - Fork 0
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
devise を使ってユーザー認証を実装 #3
Conversation
</p> | ||
</header> | ||
<% end %> | ||
<% if request.path == '/users/sign_in' %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目くじら立てるようなことじゃないのですが、特定パスに限定したのはなんでだろうなって思いました
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deviseのログイン画面でviewをアプリ側に用意せずにフラッシュメッセージを出すという目的だけのために書いたので、こういった形になりました。他の画面のフラッシュメッセージもまとめようかとも思ったのですが、booksの画面を今回はいじらないようにしました。
意図がわかりにくいので、コメントをつけるようにしてみます。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
なるほどー、そういうような理由があるんだろうなーとは思いました。OKです。ちなみに
booksの画面を今回はいじらないようにしました。
ここらへんもいじって共通化していたとしてもOK出してたと思います 👍
No description provided.