gazay/gon: Your Rails variables in your JS

21-Nov-2025 576
If you need to send some data to your js files and you don't want to do this with long way through views and parsing - use this force! Now you can easily renew data in your variables through ajax with gon.watch! With Jbuilder, Rabl, and Rabl-Rails support! For Sinatra available gon-sinatra. For .Net MVC available port NGon. For elixir Phoenix available PhoenixGon.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle