Added a red heart for users to click and favorite a recipe
setting up user favs
paolo seeded the recipe database
link called Favorites goes to users show page
updated with nina's branch
Link to user's favorite page done
Link to user's pantry page done
all tests pass
Merge branch 'fixing_stuff' into favorite_recipes
step back
TODO figure out how to link to user pantry and user favorites without getting routing error
A user has many recipes, a recipe belongs to a user. Need to use the same logic as the ingredients checkbox
undefined method length for nil:NilClass. It looks like the user_favs array is not populating with the recipe urls and names.
Added a new migration, seeded database, all tests pass, things are good.
Created join table and many to many relationship between recipes and users
form_for on the recipes show page tries to submit to the recipes show even though I told it to submit to the user_path(@user).
made user recipes model
updated and merged from master
Ok, the associations between user and recipes are working, but the form in recipes show is not working yet. It's trying to send to users/1/nachoresult still.
yay it works! just need to style the favorites page