Skip to content

Conversation

@hanalways
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 where we store and interact with the databases of information that the server interacts with.
Describe in your own words what the Controller is doing in Rails The controller receives requests from the user. It then interacts with the model to retrieve the requested information/data and passes this data to the view.
Describe in your own words what the View is doing in Rails The view is displaying HTML and data passed from the controller, does not contain any "business logic".
Describe an edge-case controller test you wrote I wrote an edge-case test that tested to check that the controller will respond with redirect when attempting to edit a nonexistant task.
What is the purpose of using strong params? (i.e. the params method in the controller) Strong params help in DRYing up code and reducing redundancy as well as to provide a safe way to access exactly which attributes to permit.
How are Rails migrations related to Rails models? When you generate a new model, you generate a class that inherits from ApplicationRecord and a migration class that effects the schema of the model's database. To save any changes to this schema or template you run db:migrate, and can check to see if these migrations are up/down using db:migrate:status.
Describe one area of Rails that are still unclear on Still feel a little unclear on RESTful routes and how to link correct routes to the right logic in our view.

@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 mostly - the first time you mark a task complete it takes two tries
Tests for Destroy & Task Complete include tests for valid and invalid task ids these tests are missing
Routes follow RESTful conventions yes
Uses named routes (like _path) yes
Overall You're off to a strong start on Rails so far. 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