Since you're already doing well, in this part we wont give you detailed instructions on how to solve these exercises.
The users should be able to delete their posts. Create a new link on the post page with the text "Delete". Clicking on this button should delete the post and redirect to the post listing page.
Users should be able to comment every post. To achieve this, you have to
- Create a new model named
Comment
- The
Comment
modelbelongs_to
thePost
, this is called a relation
- The
- Update the
config/routes.rb
to handle comments - Create a new Controller for the comments
- Create/update the required views