Conversation
…ect to index after success
Task ListMajor Learning Goals/Code Review
Functional Requirements/Manual Testing
Overall Feedback
Code Style Bonus AwardsWas the code particularly impressive in code style for any of these reasons (or more...?)
|
beccaelenzil
left a comment
There was a problem hiding this comment.
Good work overall. It is clear that the learning goals around implementing MVC with the rails framework were met. With your next project you'll have an opportunity to implement some of the new concepts and add styles to enhance the user experience. Keep up the hard work.
| get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task' | ||
| patch '/tasks/:id', to: 'tasks#update' | ||
| delete '/tasks/:id', to: 'tasks#destroy' | ||
| patch '/tasks/:id/completed', to: 'tasks#completed', as: 'completed_task' |
There was a problem hiding this comment.
Consider how making two separate methods, for instance mark_complete and mark_incomplete would make this action idempotent.
| <%= link_to "Task ##{task[:id]}" , task_path(task[:id]) %><br> | ||
| <%= task[:name] %> must <%= task[:description] %><br> | ||
| <%= button_to "Edit Task", edit_task_path(task[:id]), method: :get %> | ||
| <%= button_to "#{task.task_completed ? "Completed" : "Not Completed"}", completed_task_path(task.id), method: :patch %> |
There was a problem hiding this comment.
Consider changing the names on these buttons to Mark Complete and Mark Incomplete to make it clearer what happens when you click the button. You could use a strike-through to indicate when a task is complete.
| @@ -0,0 +1,8 @@ | |||
| <h1>Specific Task</h1> | |||
There was a problem hiding this comment.
Once you're on the show page, there's no easy way to get back to the index view. You could add a link to the show view, or add a nav bar to the application view in layouts.
Task List
Congratulations! You're submitting your assignment!
Comprehension Questions