Skip to content

Conversation

@antoniairizarry
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 It provides data to the database.
Describe in your own words what the Controller is doing in Rails The controller works with requests and data to determine which action will be taken, which will be given back to Views.
Describe in your own words what the View is doing in Rails View renders data from controller to be user-facing.
Describe an edge-case controller test you wrote N/A
What is the purpose of using strong params? (i.e. the params method in the controller) It makes it safer to work with data that comes from forms and can make code more succinct.
How are Rails migrations related to Rails models? Changes in the Rails model require migrations because they cause changes in the schema.
Describe one area of Rails that are still unclear on Strong params, and still getting used to all the details you have to keep track of while using Rails.

@CheezItMan
Copy link

Task List

Major Learning Goals/Code Review

Criteria yes/no, and optionally any details/lines of code to reference
At least 6 commits with meaningful commit messages ✔️
Routes follow RESTful conventions ✔️
Uses named routes (like _path) ✔️
Creates Models and migrations ✔️
Creates styled views You've created the views, they're not really styled
Handles errors like nonexistant tasks ✔️
Uses form_with to render forms in Rails ✔️

Functional Requirements/Manual Testing

Functional Requirement yes/no
Successfully handles index & show ✔️
index & show tests pass ✔️
Successfully handles: New, Create ✔️
New, Create tests pass ✔️
Successfully handles: Edit, Update ✔️
Successfully handles: Destroy, Task Complete ⚠ , no mark tasking complete

Overall Feedback

Overall Feedback Criteria yes/no
Green (Meets/Exceeds Standards) 5+ in Code Review && 5+ in Functional Requirements

Code Style Bonus Awards

Was the code particularly impressive in code style for any of these reasons (or more...?)

Quality Yes?
Perfect Indentation
Descriptive/Readable
Concise
Logical/Organized

Summary

Nicely done, you hit the main learning goals here. Take a look at my few comments and let me know what questions you have.

redirect_to task_path(@task.id)
return
else
render :new, :bad_request

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this works, but I like to do this being more explicit about the status code.

Suggested change
render :new, :bad_request
render :new, status: :bad_request

<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>

<body>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest adding navigation links like making a new task and linking to the all tasks page.

Comment on lines +4 to +8
<%= f.label :name %>
<%= f.text_field :name%>
<%= f.label :description %>
<%= f.text_area :description %>
<%= f.submit "Save task", class: "button" %>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize this came after tasklist, just a reminder in future projects you can dry up the forms with a partial view.

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