Clean your controller and model with gon+rabl
Introducing gon gem. From the beginning it was just a funny gem which allowed to throw controller variables to js global namespace without data attributes in view. Now integrated with rabl it’s really useful tool making getting JS start data for your application easy.
Post a comment