add intersection table for  recipe-ingredient

rails g model Quantity recipe_id:integer ingredient_id:integer quantity:float
rake db:migrate
add has_many :quantities >>Ingredient, Recipe
add has_many :[other], through :quanities >>Ingredient, Recipe
add belongs_to :recipe, :ingredient >>Quantity
s/, through/, through:/ in models