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

devise を使ってユーザー認証を実装 #3

Merged
merged 11 commits into from
Sep 7, 2021

Conversation

tksmasaki
Copy link
Owner

No description provided.

</p>
</header>
<% end %>
<% if request.path == '/users/sign_in' %>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

目くじら立てるようなことじゃないのですが、特定パスに限定したのはなんでだろうなって思いました

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deviseのログイン画面でviewをアプリ側に用意せずにフラッシュメッセージを出すという目的だけのために書いたので、こういった形になりました。他の画面のフラッシュメッセージもまとめようかとも思ったのですが、booksの画面を今回はいじらないようにしました。
意図がわかりにくいので、コメントをつけるようにしてみます。

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほどー、そういうような理由があるんだろうなーとは思いました。OKです。ちなみに

booksの画面を今回はいじらないようにしました。

ここらへんもいじって共通化していたとしてもOK出してたと思います 👍

@tksmasaki tksmasaki merged commit ba0bf7e into 04-user_page Sep 7, 2021
@tksmasaki tksmasaki deleted the my-user_page branch September 7, 2021 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants