Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing gon from project causes remote calls to stop working #34

Closed
workmaster2n opened this issue Mar 26, 2012 · 1 comment
Closed

Comments

@workmaster2n
Copy link

I've posted the question on SO here: http://stackoverflow.com/questions/9878544/rails-3-remote-stops-working-when-i-remove-gon

The gist is that I tried to remove gon from a project by removing the call to <%= include_gon %> from application.html.erb, but when I do that, all my remote form submissions stop working because the callbacks are no longer being called. Re-adding the gon calls makes everything work again.

@workmaster2n
Copy link
Author

My bad. I had a call to gon sitting in a buried JS file that was not throwing an error (due to gon being undefined) for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant