Notes From a Full Stack Developer
on Gon, JS Rails Variables

Bring Rails data to javascript with Gon

Using Rails data in javascript is a very common need, especially for SPA (Single Page Application) with AngularJS, Backbone.js, Ember... or only pure javascript applications. We have some ways to make this Assign to javascipt variable in views #/views/layouts/application.html.erb <script type="text/javascript&
Read More