Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
投稿のCRUD機能を作りました。
* 画像の削除
* バリデーションには`activestorage-validator`を使いました。
エンドポイント
確認方法
bundle install
を実行してくださいbin/rails db:migrate
を実行してください上記エンドポイントを叩いて動作確認をしてください。
チェックリスト
コメント
メソッドについて定義がどこにあるのかわからなかった。
https://github.com/DaichiSaito/insta_clone_ver7/pull/4#discussion_r936774938
specフォルダの models/post_spec.rbとuser_spec.rbが必要なのかわからないです。テストすると
pending
が出てくるので消したくなりました!学んだこと
イメージは掴んだが、完全には理解できていない気がします。
もう少しパターンを抑えたいところです。
下記例が分かりやすい。