Alexey Gaziev
Ranked 74 in Phase 1 with 43 unique views, 10 counted upvotes and 12 counted downvotes

Rails controller action and JS are like brothers now – thanks to the gon gem

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!

Previous Next