I was recently pointed to gon for passing variables from my controller to javascripts available on a page.
Suppose I pass a variable @note that has attributes location, content, and tags (associated tags). How to I access these attributes in the jQuery file? if I do:
alert(gon.note)
I get an alert [object][Object]
I want to access the content to output a string ie
var string = gon.note.content
gon.note.content doesn't work. Any pointers?