2020-09-17 find_byメソッド @post = Post.find_by(id: 2) → (変数) = (モデル名).find_by(カラム名: 値) 特定のidの投稿を取得することができる