Rails conveniently packages post data in the params hash. The order
in which data is stored in a hash is typically not the order in which
the data was entered. Generally this is not a problem; however, there
are some unusual fact patterns in which it is. One of those fact
patterns involves PayPal’s Instant Payment Notification in which
PayPay expects to receive a copy of the params hash parroted back to
them with the elements in the exact order that they were posted.
I am aware that beginning with Ruby 1.9, the elements of a hash are
stored in the order that they were entered. However, I don’t have the
luxury of being that current. Accordingly, it appears that I am going
to have to parse the raw post data and enter it into either an ordered
hash or an array. My question is, how would I go about doing that?
Thanks for any input.