06 Mar '12, 5am

#324 Passing Data to JavaScript - RailsCasts

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.

Full article: http://railscasts.com/episodes/324-passing-data-to-javasc...

Tweets