Skip to content

Conversation

@kdow
Copy link

@kdow kdow commented Apr 15, 2019

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 handles state and data.
Describe in your own words what the Controller is doing in Rails The controller handles requests from the user and passes data from the model to the view.
Describe in your own words what the View is doing in Rails The view renders data into HTML.
Describe an edge-case controller test you wrote The tests for returning a 404 if the task does not exist. The user shouldn't be able to perform these actions since they are linked to elements that appear with the task.
What is the purpose of using strong params? (i.e. the params method in the controller) For security and writing less code.
How are Rails migrations related to Rails models? The model attributes align with the database columns.
Describe one area of Rails that are still unclear on I'm not sure when I should be using instance variables in the controller methods.

@droberts-sea
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 yes
Successfully handles: Index, Show yes
Index & Show tests pass yes
Successfully handles: New, Create yes
New & Create tests pass yes
Successfully handles: Edit, Update yes
Tests for Edit & Update test valid & invalid task ids yes
Successfully handles: Destroy, Task Complete yes
Tests for Destroy & Task Complete include tests for valid and invalid task ids yes
Routes follow RESTful conventions yes
Uses named routes (like _path) yes
Overall You're off to a strong start on Rails. Keep up the hard work!

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