Ruby on Rails: instance & class variables not maintaining value in controller
- by DerNalia
at the top of my controller, outside of any method, I have
@@javascript_is_disabled = false
and I have methods that that the view calls and invokes something like this
@@javascript_is_disabled = params[:javascript_disabled]
but when I need the @@javascript_is_disabled in completely different method.. it is always false.
I know it changes in the method with params args... cause those methods behave differently, and appropriately
And ideas?