-
Notifications
You must be signed in to change notification settings - Fork 43
Lauren Cardella -- Carets #37
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?
Conversation
…date date column names to snake_case, update index view.
…e link when it is completed.
… done message if task has been marked complete.
… return to task list if succesful. Date selector is not passing due_date value to ActiveRecord.
…ms methods to controller.
…omplete. Add complete_task_path to routes. Fix complete? method in task model. Feature working.
…ate to determine status.
Task ListWhat We're Looking For
|
|
I couldn't find where the partials _complete and _incomplete were used? Good work on this overall, I'm leaving a few comments but I think overall this is great |
| <p class="task_details">Description: <%= task.description %></p> | ||
| <br> | ||
| <%= link_to image_tag("edit_pencil.png", alt: "edit button"), edit_task_path(task.id), method: :get %> | ||
| <%= link_to image_tag("delete.png", alt: "delete button"), delete_task_path(task.id), method: :delete, data: { confirm: "Delete 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.
This confirmation alert is really cool!
| @task = Task.new(task_params) | ||
|
|
||
| if @task.save | ||
| flash[:notice] = "Task saved" |
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.
nice use of flash, but you don't end up using this at all in the view!
We'll be going over flash formally next week
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.
I was wondering why it wasn't showing...
| def destroy | ||
| Task.find_by(id: params[:id]).destroy | ||
|
|
||
| redirect_to root_path, notice: "Task deleted." |
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.
Cool that you're setting notice, but this doesn't end up getting used on the view at all
|
I didn't end up using the _incomplete and _complete partials, then forgot to delete the files 😬 |
Task List
Congratulations! You're submitting your assignment!
Comprehension Questions