<%= select_month(Date.today) %> renders drop down of months (can substitue for days and years)
module ApplicationHelper
def pig_latin str
str + "piglatined"
end
end
-
Book (has_many Ingredients)
- title
- author
- type
- id
-
Recipe (has_many Ingredients/belongs_to Book)
- name
- id
- ingredients
-
Ingredients(belongs_to Recipie)
- name
- id
-
Ingredients_Recipe(many-to-many relationship: has_many Recipe& has_many Ingredients)
- recipe id
- ingredient id