I\'m trying to get my JSON from my controller to my view. In my controller I am doing:
@nodes = Node.all @json = @nodes.as_json(:only => [:ID, :Lat, :Lon]) <
I think you need to put quotes around it, then you can ask jquery to parse the string into JSON.