In this tutorial we'll try to finalize the todo app.
- Display "No items in the list" message if there are no items in the todo list.
- Display the todo-items only for the logged in users.
- Link the todo item with the user.
- Add a new attribute
user
in theTodo
model that references to theUser
model. - Create migration and run it.
- Add a new attribute
- Set the current user while saving the todo item.
- Display only the user-specific todo items in the todo list. The list should display items created by the logged in user.
- Link the todo item with the user.
- Restrict non-creator users to edit the todo item.
- Restrict non-creator users to delete the todo item.
- Display custom message on a custom 404 Not Found page.