RailsCasts
Ryan Bates
Add to My Podcasts
Episodes
About
Reviews
Promote
Show notes
There are a variety of ways to pass variables from a Rails application to JavaScript. Here I show three techniques: a script tag, a data attribute, and the Gon gem.
Listen Instead
Switch to Audio
Refresh video
Previous
#322 RABL
Next
#326 ActiveAttr
← See all 346 episodes of RailsCasts