-
Notifications
You must be signed in to change notification settings - Fork 51
Earth - Lina #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Earth - Lina #48
Conversation
…d styled it to have a strike across the task
beccaelenzil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 | Not required |
| 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 | ✔️ |
| Edit, Update tests pass with valid & invalid task ids | ✔️ |
| Successfully handles: Destroy, Task Complete | These methods are written well and tested well, but the functionality is never given to the user |
| Tests for Destroy & Task Complete include tests for valid and invalid task ids | ✔️ |
Overall Feedback
Good work on this project. You've created your first web app in rails, nice work! It is clear that the learning goals around using rails conventions, strong params, and custom routes were met. On upcoming project I enourage you to explore styling and use partial views. I've left a few in line comments for you to review. Keep up the hard work!
| Overall Feedback | Criteria | yes/no |
|---|---|---|
| Green (Meets/Exceeds Standards) | 5+ in Code Review && 6+ in Functional Requirements | ✔️ |
| Yellow (Approaches Standards) | 3+ in Code Review && 5+ in Functional Requirements, or the instructor judges that this project needs special attention | |
| Red (Not at Standard) | 0-2 in Code Review or 0-4 in Functional Reqs, or assignment is breaking/doesn’t run with less than 5 minutes of debugging, or the instructor judges that this project needs special attention |
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 | ✅ |
| patch '/tasks/:id/complete', to: 'tasks#mark_complete', as: 'complete_task' | ||
| patch '/tasks/:id/incomplete', to: 'tasks#unmark_complete', as: 'incomplete_task' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great use of two separate methods to make this action idempotent.
| # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html | ||
|
|
||
| root 'tasks#index' | ||
| get '/tasks', to: 'tasks#index', as: 'tasks' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using resources
| @@ -0,0 +1,22 @@ | |||
| <h2>EDIT A TASK</h2> | |||
|
|
|||
| <%= form_with model: @task, class: 'create-task' do |f| %> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using a partial view for edit and new views.
| <div> | ||
| <%= f.label :completed_at %>: | ||
| <%= f.text_field :completed_at %> | ||
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider leaving this off from your form as it would make sense that new task has set nil for completed_at, and you have a custom method to change this (mark_complete and mark_uncomplete).
Task List
Congratulations! You're submitting your assignment!
Comprehension Questions