Rails And Javascript: Brothers In Arms Using Gon
Alexey Gaziev • June 07, 2013 • Singapore
Did you ever want to integrate your Ruby code in controllers and JavaScript code in the frontend? Gon is here to help with seamless serialization, DRY code and live reloading. Organize your frontend the way it deserves!
This talk will describe several strategies of transporting data between backend and frontend with the gon gem. It covers:
- simple variable transfer
- complex serialization with Rabl and JBuilder templates
- transparent synchronization of JavaScript variables with their server-side counterparts
- easy way to set initial or global data for whole application
- real-life examples
- nice mood with a set of nifty pics
- and a bit of spice: Gon internals!
Red Dot Ruby Conference 2013