changed post.id -> @post.id, ln 6