Instead of keeping all your recipes on index cards (just like your grandma did!), we're going to be building a web app to store those recipes for you!
Create a new table in the database to store the recipes. Recipes should have
ingredients (which can be written as one string containing all the
cook_time. These attributes should each be a
Make sure you have a corresponding model for your recipes.
application_controller.rb, set up a controller action that will
render a form to create a new recipe. This controller action should create and
save this new recipe to the database.
Again in the
application_controller.rb, create a controller action that
uses RESTful routes to display a single recipe.
Create a third controller action that uses RESTful routes and renders a form to edit a single recipe. This controller action should update the entry in the database with the changes, and then redirect to the recipe show page.
Create a controller action (index action) that displays all the recipes in the database.
Add to the recipe show page a form that allows a user to delete a recipe. This form should submit to a controller action that deletes the entry from the database and redirects to the index page.