PodParley PodParley

#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

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.

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.

No similar episodes found.

No similar podcasts found.

URL copied to clipboard!