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 "data_layer" #4

Open
pauades opened this issue Jul 3, 2018 · 1 comment
Open

undefined "data_layer" #4

pauades opened this issue Jul 3, 2018 · 1 comment

Comments

@pauades
Copy link

pauades commented Jul 3, 2018

I am receiving a "undefined local variable or method `data_layer'" when I try to set the variable data_layer, where should I declare it?

My controller:
image

@ykogure
Copy link
Owner

ykogure commented Oct 5, 2018

@pauades
Hello pauades.
Sorry for replying so late.

I also tried using devise, but I did not have that problem.
data_layer is defined when rails initializing as follows.
https://github.com/ykogure/gtm_on_rails/blob/master/lib/gtm_on_rails/controllers/initialize_data_layer.rb

What version ruby are you using?

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