http://apidock.com/rails/Hash/slice