Skip to content

Instantly share code, notes, and snippets.

@chyld
Created September 10, 2012 01:53
Show Gist options
  • Save chyld/3688399 to your computer and use it in GitHub Desktop.
Save chyld/3688399 to your computer and use it in GitHub Desktop.
iwd 3 final project
Create a new rails app called DinnerTyme
Create a model, view, controller for the following types and also create their associations.
10 points
-- Recipe --
name - the name of the recipe
directions - this are the directions for the recipe
photo
rating - a number between 1 and 5
serves - the number of people it serves
time - time in minutes to prepare
items - this is an association to the item class (a recipe has many items)
kitchen - this is an association (the kitchen the recipe belongs to)
10 points
-- Item --
amount - this is the amount for an ingredient (like 5... as in cups, or grams)
recipes - this is an association (an item is in many recipes)
ingredient - this is an association (the ingredient related to the item, like celery)
10 points
-- Ingredient --
name - like celery
unit - like cup, or litre
items - an association (it is in many items)
10 points
-- Kitchen --
name - paula's kitchen
recipes - an association (kitchen has many recipes)
groceries - an association (kitchen has many groceries)
10 points
-- Grocery --
name
kitchen - an association (the kitchen that the grocery item belongs to)
10 points
Create a nav bar at the top with links to recipes, items, ingredients, kitchens and groceries
Create a header
Create a footer
The home page should be the kitchen index page
20 points
On the kitchen new page:
Be able to give the kitchen a name, select the groceries in the kitchen and available recipes.
20 points
On the recipe new page:
Be able to add items to a recipe - and an item is a measure and an ingredient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment