Ran into a funny prob today which was resolved by using OrderedHash instead of Hash.  In ruby 1.8.x Hash is not an OrderedHash but in 1.9 even an ordinary Hash is Ordered. My dev was on ruby 1.9 but dreamhost is on 1.8.7 hence the problems.