In this milestone, I introduced the Food List feature, including full CRUD (Create, Read, Delete) functionality for managing food items within the RecipeApp. The primary components of this feature include:
Food List Page:
The Food List page displays a tabular list of food items added by the logged-in user.
Each item in the list includes the food name, quantity, unit price, and an action to delete the food item.
Add Food Form:
Users can add new food items through a dedicated form accessible from the "Add Food" button on the Food List page.
Deletion of Food Items:
Users can delete food items directly from the Food List by clicking the delete action.
Authorization:
Implemented authorization using the CanCanCan gem to ensure that users can only delete their own food items.
The changes made in this pull request enhance the user experience by allowing users to manage their food items easily.
Recipe App: Add Food list page
In this milestone, I introduced the Food List feature, including full CRUD (Create, Read, Delete) functionality for managing food items within the RecipeApp. The primary components of this feature include: