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

06 投稿に対するいいね機能を実装 #6

Merged
merged 4 commits into from Aug 5, 2022

Conversation

sarii0213
Copy link
Owner

概要

投稿に対していいねができる機能を実装しました。

Image from Gyazo

turboを使っています。

エンドポイント

やりたいこと HTTPメソッド エンドポイント コントローラ#アクション
いいねをする POST posts/:post_id/like posts/likes#create
いいねを取り消す DEELTE posts/:post_id/like posts/likes#destroy

確認方法

  1. テーブルを作成したので bin/rails db:migrate を実行してください

いいね、いいねの取り消しができることを確認してください。

チェックリスト

  • テストを書いた
  • Lint のチェックをパスした

コメント

特になし

@sarii0213 sarii0213 merged commit 5d6c3c6 into develop Aug 5, 2022
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.

None yet

1 participant