Closed ryohakjae114 closed 4 weeks ago
[!WARNING]
Review failed
The pull request is closed.
これらの変更は、投稿に関連するコメントを管理する新しい機能を導入しています。Posts::CommentsController
では、コメントの作成と関連データの設定を担当し、新たに作成されたコメントフォームおよび表示ビューが連携します。また、コメントを追加するためのリンクが投稿表示ページに追加され、ルート設定とシステムテストも更新されています。
ファイル名 | 変更内容 |
---|---|
app/controllers/posts/comments_controller.rb |
コメントを管理する新しいコントローラ Posts::CommentsController が追加されました。 |
app/views/posts/comments/new.html.haml , app/views/posts/show.html.haml |
新しいコメント作成フォーム、およびコメント作成リンクがビューに追加されました。 |
app/views/shared/_comment.html.haml |
コメント本文を表示する段落要素のクラスが comment-body に更新されました。 |
config/routes.rb |
投稿に関連するコメントを処理する新しいルートが追加されました。 |
spec/system/posts/posts_comments_spec.rb |
コメント作成機能をテストするための新しいシステムテストが導入されました。 |
ここに新しいコメントの風、
投稿に彩り、輝きを放つ。✏️
フォームとリンク、ビューを繋ぎ、
ルートとテストで夜空にクレッセンド。
うさぎも喜ぶ、この機能!🐇☁️
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?
Changes Lines
+60 additions, -1 deletions