Hash Tree gives you the abilty to manipulate nested hashes. The nodes of the hashes can be others hashes or even arrays of hashes.
gem install hash-tree
In your Gemfile:
Copyright (c) 2012 De Marque inc. See LICENSE for further details.