From: Rick DeNatale Date: 2007-03-27T04:19:05+09:00 Subject: Re: Serializing a nested hash On 3/24/07, Christoffer Lern� wrote: > > If one wants to put a hash (or an array) on a single line with yaml, > you need to use the {} / [] format. > > So this: > --- > :attribute: > :items: 2 > :date: 1 > > Can be written > :attribute: { :items: 2, :date: 1 } So the OP could change this to: attribute: {items: 2, date: 1} On the other hand it might be nice to be able to use rails feature of running things like these fixture yaml file's through erb/eruby first, but that would require a facility (in the yaml module?) to produce an inline yaml string. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/