From: Hal Fulton Date: 2006-08-14T07:31:05+09:00 Subject: Re: hash.keys and hash.values Mage wrote: > Hello, > > I know the order of the keys of a hash is arbitary. However, has the > hash.keys and hash.values same order? Will they be consistent with each > other? > > I found nothing in the manual about this. The @Agile Web Developing" > book uses the form below: > > Users.update(params[:user].keys,params[:user].values) > > So, I think, the order of the keys and values should be same. If it is > then it should be documented, too. > > If I missed something, excuse me. They'll certainly be the same order. It would be crazy otherwise. This perhaps should be mentioned somewhere, but maybe people take it for granted. Hal