I am calling ajax function
$.ajax({
url: $.grails.createLink('class', 'action'),
data: {id: id1},
async: false
});
so I am calling grails method here
def action = {
}
now at the end of this action method if I don't return anything I get js error 'Sorry, Error occurred' so explicitly I specified 'render ""' at the end of action method.
Is there any way to avoid render?