We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to be able to assign/change gon variables in a view. I did find something about how to do that but couldn't find it again.
I tried
<%= @gon.namespace = { :vartest => "1234" } %>
but that gave me an error of
NoMethodError in SlitterBedsheets#show
My goal is to assign a global variable from a view.
thanks
The text was updated successfully, but these errors were encountered:
If I remember correctly, you can use global variables for this. For example, Gon.global.variable = '1234'.
Gon.global.variable = '1234'
Sorry, something went wrong.
No branches or pull requests
I need to be able to assign/change gon variables in a view. I did find something about how to do that but couldn't find it again.
I tried
but that gave me an error of
My goal is to assign a global variable from a view.
thanks
The text was updated successfully, but these errors were encountered: