I'm communicating with my controller via AJAX and requesting an action. But depending to the result on the said controller, I want it to return particular values, but by now it return a whole "index" template.
I just want it to return what I say it to return. How can I do that?
Example:
// In some view...
$.post('my/action', send, function(res){
// 'res' variable should be 'true' or 'false', not the whole View html, etc...
});