cookbook assignment

Would appreciate any suggestions on refactoring or ways of simplifying my code. This assignment was pretty hard for me and I think my messy code reflects that a bit. I also noticed a really weird bug yesterday that treats the recipe_id and ingredient_id as string values rather than integers. I have no idea why it is doing this!
You may want to consider a default for the `yield(:title)`, so that if you forget to set it within a template, there is still a pretty title.
```html
<title><%= yield(:title) || "I heart cooking" %> | Robot Cookbook</title>
```