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

undefined variable include_gon #263

Open
Tshamp7 opened this issue Jul 26, 2020 · 1 comment
Open

undefined variable include_gon #263

Tshamp7 opened this issue Jul 26, 2020 · 1 comment

Comments

@Tshamp7
Copy link

Tshamp7 commented Jul 26, 2020

Hello! Hopefully someone can help me with this because this was going to make implementing stripe a little easier for me! So I tried to install gon so that i could pass variables to my view from my controller and have them be accessible in my JS, but, after installing the gem and defining some variables, I just keep getting and "undefined variable <%= include_gon %>" error message.

Im using the most current version of ruby and rails.

Is there something else I have to do that Im missing?

@unixneo
Copy link

unixneo commented Nov 10, 2020

This typically happens when you have not included the gon gem, for example, perhaps you forgot to this this to. your code:

gem 'gon', '6.2.0'
require 'gon'

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

2 participants