Hash inside YAML file?
Posted
by yuval
on Stack Overflow
See other posts from Stack Overflow
or by yuval
Published on 2010-06-13T21:54:39Z
Indexed on
2010/06/13
22:02 UTC
Read the original article
Hit count: 458
I want to include a hash and list inside a YAML file that I'm parsing with the following command:
APP_CONFIG = YAML.load_file("#{RAILS_ROOT}/config/config.yml")
My YAML file looks like this:
feeds: [{:url => 'http://www.google.com', :label => 'default'}]
But this doesn't seem to work. How would I go about achieving such a thing?
Thanks, Yuval
© Stack Overflow or respective owner