Skip to content

Commit f9dfc46

Browse files
committed
Update README.md
1 parent f1e7a27 commit f9dfc46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ class App.MyClassName
280280
281281
```
282282

283+
### Passing Rails Variables
284+
285+
To pass data from Rails to JavaScript, just define ```@to_javascript```. This is then converted to a JSON object with ```@to_javascript.to_json``` and can be accessed with ```Utility.RailsVars```.
286+
283287

284288
### Events
285289

0 commit comments

Comments
 (0)