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, unexpected tINTEGER (which I can
understand...)
how can I user a numeric key ?
thanks fyh
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.