Ada cooks

Please take a look at the form/method for adding measurements to a recipe. I had trouble with this because it only worked sometimes. When it wasn't working, the "Add ingredients" submit button did nothing when clicked. This made it difficult to troubleshoot, since nothing showed up on the rails server page or the network page when I inspected the element, nor was there any kind of error. Thank you! 
It was a way of showing the measurements and their corresponding ingredients while only iterating over one array. Displaying each line of the recipe was tricky because the ingredients and measurements lived in separate places. Creating these arrays was a quick for me to organize the values I needed (measurement, ingredient, and measurement id) into an array for the show page and edit link. Obviously, it wasn't an ideal way of doing things, but I wasn't sure of how to do this otherwise. :-/