#324 Passing Data to JavaScript
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,...
An episode of the RailsCasts (Mobile) podcast, hosted by Ryan Bates, titled "#324 Passing Data to JavaScript" was published on February 13, 2012 and runs 6 minutes.
February 13, 2012 ·6m · RailsCasts (Mobile)
0:00 / 0:00
Summary
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.
Episode Description
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.
Similar Episodes
No similar episodes found.
Similar Podcasts
No similar podcasts found.