Closed ryohakjae114 closed 4 months ago
この変更は、ユーザー認証機能を強化するためのものです。Deviseを利用して、サインアップ時の追加キー許可、name
属性の検証メッセージの国際化、パスワード変更やリセットなどの機能の追加が含まれています。また、ユーザー登録情報の編集やログインフォームの改善、さらにposts#index
への新しいルートルートの追加が行われています。
ファイル | 変更内容 |
---|---|
app/controllers/application_controller.rb |
Deviseコントローラーの場合、configure_permitted_parameters メソッドを呼び出すbefore_action フックを追加 |
app/models/user.rb |
name 属性の検証メッセージを国際化キーを使用するように変更 |
app/views/devise/passwords/edit.html.haml , app/views/devise/passwords/new.html.haml |
パスワード変更機能の追加 |
app/views/devise/registrations/edit.html.haml , app/views/devise/registrations/new.html.haml |
ユーザー登録情報編集フォームの追加 |
app/views/devise/sessions/new.html.haml |
ログインフォームの追加 |
config/routes.rb |
ルート定義の再配置と新しいposts#index へのルートルートの追加 |
🐰 変更の風、新しい朝が来た
パスワード変わり、安全が増す
登録と入力、心地よく整う
ぴょんぴょん進む、デジタルの世界
🌼🌸🌼🌸
ー うさぎより
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
20
Changes Lines
+86 additions, -34 deletions
Summary by CodeRabbit