Skip to content

Conversation

@dnsrocha
Copy link

@dnsrocha dnsrocha commented Nov 2, 2020

Task List

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Describe in your own words what the Model is doing in Rails Adding database records, updating, removing and/or finding data (CRUD).
Describe in your own words what the Controller is doing in Rails The controller makes sense out of a request made in the rails application and produces appropriate output (it makes the model data available to the view).
Describe in your own words what the View is doing in Rails The view is the part that is actually shown to the user (the actual webpage).
Describe an edge-case controller test you wrote Will redirect to the root page given an invalid id.
What is the purpose of using strong params? (i.e. the params method in the controller) Strong params prevents assigning request parameters to objects unless they have been explicitly permitted.
How are Rails migrations related to Rails models? Rails migrations are related to the Table itself such as adding a new column or creating a new Table. Models are the data or rows in the Table.
Describe one area of Rails that are still unclear on Testing for rails still need some clarification to me.

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.

1 participant