Skip to content

Conversation

@misstonbon
Copy link

@misstonbon misstonbon commented Oct 1, 2017

Task List

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Describe in your own words what the Model is doing in Rails When we generate a model min Rails this sets up the database table based on model name (in this case Task).Model in Rails will have a singular name, though its database is pluralized. When creating a model we also set its attributes, which are the data structures. The most important files created are the app/models/task.rb and db/migrate/12345create_task.rb.
Describe in your own words what the Controller is doing in Rails Controller is the component of the MVC architecture that communicates between the user and both the views and models. It redirects to views or responds to requests depending on user interaction. We can think of it as the employee in a store. All requests from customers (users) are handled by it. Items from the model are retrieved and presented to the customer as needed.
Describe in your own words what the View is doing in Rails Views contain display pages that correspond to controller actions. For example, if we request the ability to edit a task, the controller will present the edit view, and then handle the edits and store.
What is the purpose of using strong params? (i.e. the params method in the controller) Controls for what params are allowed, and dryes up the code.
How are Rails migrations related to Rails models? Migrations are Ruby classes that are designed to make it simple to create and modify database tables(schema). Rails uses rake commands to run migrations, and it's possible to undo a migration after it's been applied to a database. Migration filenames include a timestamp to ensure that they're processed in the order that they were created.
Describe one area of Rails that are still unclear on I am not yet comfortable with migrations, although they are much clearer with every new Rails project, especially since I discovered Hirb, which displays table neatly in Rails console. I also need more practice with migration rollbacks. One specific problem I have is that I can't ever do a successful rake db:migrate for the first time. I always have to do rake db:reset so I can make the fist migration work.

@kariabancroft
Copy link

Task List

What We're Looking For

Feature Feedback
Baseline
Appropriate Git Usage with no extraneous files checked in Yes looks good
Answered comprehension questions Yes- I’d be curious to know why that initial migration doesn’t work. Is it giving you an error about the database not yet being created?
Successfully handles: Index, Show Looks good- nice use of the order method
Successfully handles: New, Create Looks good
Successfully handles: Edit, Update Looks good
Successfully handles: Destroy, Task Complete Destroy looks good. I see that you are still working through the complete action. In the future you’ll be able to handle this method in a model which will be exciting!
Routes follow RESTful conventions Great!
Uses named routes (like _path) Yes- nice and clear in the views and the routes you’re using.
Overall Very nice job - you hit the major learning goals on this assignment.

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