- Understand RESTful routing and how to create the routing necessary for an arbitrary resource in Rails
This homework assignment requires that you build upon your existing blog app (from the prior homework assignment)
-
Add the ability to delete Posts from the index view for Posts. The user should be rediected to the index page and be presented with a confirmation flash message after a post is successfully deleted.
-
Add the ability to create Posts. The user should be redirected to the show page of the newly created post and be presented with a confirmation flash message confirming that post was successfully created.
-
When you're done, commit your project to a new Git repo and push it to GitHub. Submit the link on Canvas.
Read the rest of the Rails guide on routing: http://guides.rubyonrails.org/routing.html