# Numeric key in yam file to be used by config file

**URL:** <https://www.ruby-forum.com/t/numeric-key-in-yam-file-to-be-used-by-config-file/194559>\
**Category:** Rails\
**Created:** [September 7, 2010, 6:56am UTC](https://www.ruby-forum.com/t/numeric-key-in-yam-file-to-be-used-by-config-file/194559 "2010-09-07T06:56:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [September 7, 2010, 6:56am UTC](https://www.ruby-forum.com/t/numeric-key-in-yam-file-to-be-used-by-config-file/194559/1 "2010-09-07T06:56:58Z")

</div>

## 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
