gazay / gon

Your Rails variables in your JS
MIT License
3.05k stars 185 forks source link

include_gon helper is not supports on Rails 4 #90

Open krishnasrihari opened 11 years ago

rajgiri8 commented 4 years ago

I am having the same issue, it's returning empty {} when called from application.js but when print it in the controller, the variable gets assigned. I have this tag in application.html.haml '= include_gon :watch => true, :init => true', and simple assignment in controller gon.your_int = 5. I was working on my school project and was trying to see if someone can help me with this issue.