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.
Embed this episode
NOW PLAYING
#324 Passing Data to JavaScript
0:00
6:48
1×
No transcript for this episode yet
Similar Episodes
No similar episodes found.
Similar Podcasts
No similar podcasts found.
Frequently Asked Questions
How long is this episode of RailsCasts (Mobile)?
This episode is 6 minutes long.
When was this RailsCasts (Mobile) episode published?
This episode was published on February 13, 2012.
Can I download this RailsCasts (Mobile) episode?
Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!