On Oct 12, 2:03 am, Thufir <[email protected]> wrote:
> I want to iterate ?nodes? and ?leafs? for a yaml document:
> thu...@arrakis:~/projects/rss$ nl user.yml
> 1 juixe:
> 2 user: juixe-user
> 3 pass: juixe-pass
>
> 4 techknow:
> 5 user: techknow-user
> 6 pass: techknow-pass
Not sure if Groups has eaten the formatting or not - are lines 2, 3, 5
and 6 indented? The YAML won't work otherwise...
script/console (or irb if you're not in Rails) is helpful here; try
doing a YAML.load_file(filename) there and see what you get back.
--Matt Jones
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---