Keeping a set of environment variables in rails and javascript
essentially, we want to keep a set of constants to be used across the rails app and javascript code. For example:

    {A:3
    B:4
    C:5}

We try not to embed rails code in javascript, and we do not want 2 copies of constants.

Thanks!
Keeping a set of environment variables in rails and javascript
===

essentially, we want to keep a set of constants to be used across the rails app and javascript code. For example:

    {A:3
    B:4
    C:5}

We try not to embed rails code in javascript, and we do not want 2 copies of constants.

Thanks!