if you just say .each on params you get an array with 2 objects.

This should make it so you get a key and value for each this in parms.