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! 
When you iterate over a hash, you can give two arguments, then in the loop, the local variables will be the key and value from the hash, rather than the whole hash. This way you could simplify this loop.
```ruby
    @attributes[:ingredients].each do |key, hash|
      if hash[:checked]
        new = Measurement.new
        new.ingredient_id = key
        new.recipe_id = @recipe.id
        new.percent = hash[:percent]
        new.save
      end
    end

```