From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2008-05-11T16:45:02+09:00 Subject: Re: yaml load error (when using cgi) Peter Jones wrote: > > I think the core issue is that your YAML file is malformed. How did > you create it? to read it : history_file="man_rep/history.yaml" history=YAML::load( File.open(history_file)) to write it: File.open( history_file, "w" ) {|f| f.write( history.to_yaml ) } history being an Array of Page(s), Page is a simple class of mine. > Load it in IRB and track down the syntax error in the YAML file: I'll look at however, i don't think it's corrupted because, i've trashed it regularly... thanks for the tip ! -- Une B�vue