I tried parsing the YAML as given by Raghu, and it worked after fixing the "id:1" > "id: 1" error.
/Lasse 2010/3/27 Colin Law <[email protected]> > On 27 March 2010 16:39, Raghu Maddali <[email protected]> wrote: > > Colin Law wrote: > >> On 26 March 2010 20:39, Raghu Maddali <[email protected]> wrote: > >>> a YAML error occurred parsing > >>> > >>> �description: MyString > >>> > >>> photo_1: > >>> �id:1 > >>> �filename: train.jpg > >> > >> Have you double checked there are no tabs on the line above? > >> Also try deleting it, retyping it, changing it to something that works > >> then changing it back again etc etc > >> Basically try things to get a handle on the problem. > >> > >> Colin > > > > Are you referring to the tab above photo_1/description...If you are > > talking about tabs b/w filename: train.jpg,I'm sure that there are no > > tabs b/w them except a single character space. > > There should be no tab characters anywhere in yaml files. Lasse is > right that there should be space after id: in the line above. > So having fixed that what was the result of my other suggestions? > Deleting that line, retyping it, pasting in a line that you know works > and so on. If the line in that position keeps giving an error > whatever you do then it is probably the line above, I assumed Lasse's > suggestion would fix it. > > Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

