Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branches - Farah #31

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Branches - Farah #31

wants to merge 13 commits into from

Conversation

in-formation
Copy link

Task List

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Describe in your own words what the Model is doing in Rails The Model is a child of ApplicationRecord. It is what communicates with the database via ActiveRecord. It essentially holds the db that you can make changes to via the Model.
Describe in your own words what the Controller is doing in Rails The Controller contains the logic of actions that the user performs. The router dictates what methods/actions are performed in the Controller and the Controller executes said action.
Describe in your own words what the View is doing in Rails The view contains the HTML code on how to display (when called upon) the information to the user. It can display database information via ActiveRecord as well.
Describe an edge-case controller test you wrote If a user tries to delete a Task that was just previously deleted, it will redirect to the root page.
What is the purpose of using strong params? (i.e. the params method in the controller) The purpose of strong params is to ensure that the only inputs put in via the site's html forms are allowed to be accepted.
How are Rails migrations related to Rails models? A migration essentially a request to either create or make a change/update to a database schema.
Describe one area of Rails that are still unclear on ActiveRecord and the Model. I know that the two go hand in hand but the task.rb in the Models folder is blank....besides the class being defined. Do we ever input any information here?

@jmaddox19
Copy link

Task List

What We're Looking For

Feature Feedback
Baseline
Appropriate Git Usage with no extraneous files checked in Yes!
Answered comprehension questions X
Successfully handles: Index, Show Yes, (Minor: The edit link from the index page goes to the show page.)
Index & Show tests pass X
Successfully handles: New, Create X
New & Create tests pass X
Successfully handles: Edit, Update X
Tests for Edit & Update test valid & invalid task ids X
Successfully handles: Destroy, Task Complete X
Tests for Destroy & Task Complete include tests for valid and invalid task ids X
Routes follow RESTful conventions X
Uses named routes (like _path) X
Overall Great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants