![]() this helper is the mechanism to send data from rails to the JavaScript w/o requiring an xhr or dumping data into the DOM and pulling it back out /barf you can call it from a view or a controller test case: 1. call `js_env :FOO => 'bar'` in a view or in a controller 2. load the page 3. open the web console and inspect the ENV global JavaScript variable 4. ENV.FOO should be 'bar', wassupnow? Change-Id: Ie079ba0ee610fc6a9e837cd1301ee29b08201e65 Reviewed-on: https://gerrit.instructure.com/8170 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Ryan Shaw <ryan@instructure.com> |
||
---|---|---|
.. | ||
coffeescripts | ||
controllers | ||
helpers | ||
messages | ||
middleware | ||
models | ||
observers | ||
stylesheets | ||
views |