template-sa6-ev.memphis-comp-7012-2024-08fall.
sa6-ev-hjsimpson-1
This project contains the start of a blogging app. It already includes a BlogPost model class, as per this class diagram:
Along with this model class, the app includes the standard resource-CRUDing pages and UI features for BlogPost model objects. It also includes model validations and database seeds. (You can ignore the test fixtures and model tests for this assignment.) It is recommended that you initialize and run the base app at this point, so you can see firsthand what’s there.
For this EV activity, we will break from the prior ones by not presenting detailed feature specs; instead, we list the tasks you are to perform.
Task to perform:
User model class.User.create!, so the system can be seeded with the users mentioned (Homer, Bart, and Lisa).BlogPostsController action, except for the index and show actions.User and BlogPost classes to establish ownership links between users and the blog posts they create, as per this class diagram:
create action of the BlogPostsController such that it adds the new BlogPost object to the collection of posts authored by the current user.BlogPost objects belong to the appropriate User objects (as per the comments).BlogPost object in order to access the following BlogPostsController actions for that object: edit, update, and destroy.BlogPost index and show pages, replace the “TODO_AUTHOR” text with email of the User object whom the BlogPost belongs to.This EV activity will also break from the prior ones in that no RSpec tests will be provided this time.
Once you’ve completed the task and confirmed that all tests pass:
Add all your changes:
git add -A
Commit your work with a meaningful message:
git commit -m "Completed SA6 Explanation Video"
Push your commits to the remote repository:
git push