The RecipeApp is a web application build on Ruby on Rails and TailwindCSS that allows you to save ingredients, keep track of what you have, create recipes, and generate a shopping list based on what you have and what you are missing from a recipe.
Create the route and controller for the Recipe functionality (Use the ER diagram to create the migration).
Add some validations to the Recipe model:
All fields must be present,
The preparation time and cooking time fields should be float and greater than or equal to zero.
The public field should be boolean and set to true by default
name must not exceed 250 characters.
Add authorization rules if necessary
The app should display a list of recipes added by the logged-in user as in the wireframe. For this, create a view with the title: Recipes List and all the requested information.
Create the route and controller for the Recipe functionality (Use the ER diagram to create the migration).
Add some validations to the Recipe model:
preparation time
andcooking time
fields should be float and greater than or equal to zero.public
field should be boolean and set totrue
by defaultname
must not exceed 250 characters.Add authorization rules if necessary
The app should display a list of recipes added by the logged-in user as in the wireframe. For this, create a view with the title: Recipes List and all the requested information.
Should lead to recipe details.