search for: e09cba8653489749388797926512bb75

Displaying 1 result from an estimated 1 matches for "e09cba8653489749388797926512bb75".

2010 Sep 07
0
numeric key in yam file to be used by config file
I am using a YAML file for my app config, loading it : ---- raw_config = File.read(RAILS_ROOT + "/config/app_config.yml") APP_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys --- It''s running well as long as I use alpha keys development: seve: api_token: e09cba8653489749388797926512bb75 then APP_CONFIG[:seve]["api_token"] gives me e09cba8653489749388797926512bb75 BUT I need to use a ''numeric'' project_id key , like 123456 rather than seve, and writing development: 123456: api_token: e09cba8653489749388797926512bb7 gives me a syntax error,...