Keeping a set of environment variables in rails and javascript
Posted
by ming yeow
on Stack Overflow
See other posts from Stack Overflow
or by ming yeow
Published on 2010-03-24T22:45:56Z
Indexed on
2010/03/24
23:03 UTC
Read the original article
Hit count: 159
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!
© Stack Overflow or respective owner