EPISODE · Feb 13, 2012 · 6 MIN
#324 Passing Data to JavaScript
from RailsCasts (Mobile) · host Ryan Bates
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.
What this episode covers
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.
NOW PLAYING
#324 Passing Data to JavaScript
No transcript for this episode yet
Similar Episodes
Mar 2, 2026 ·27m
Mar 2, 2026 ·8m
Feb 25, 2026 ·14m
Jan 14, 2026 ·32m
Dec 16, 2025 ·43m