#324 Passing Data to JavaScript – RailsCasts Mar 2, 2012 3 ways for passing data from Rails app to client side Javascript: script tag dom data attribute Gon gem Link: #324 Passing Data to JavaScript – RailsCasts