Topic: jQuery getJSON() and reply
Hi all,
I'm using getJSON() function to get data via AJAX.
After the process I get a TemplateMissing error:
ActionView::MissingTemplate (Missing template contracts/myaction with {:locale=>[:it, :it], :formats=>[:json], :handlers=>[:rhtml, :rxml, :builder, :erb, :rjs]} in view paths ...But I don't want to render a template, I want to return a value to process in the success function:
$.getJSON("myaction/"+level, { }, function(data){
// I want handle data from ruby here
});Someone can help me?