Returning :success or :failure to remote function calls

Hi,

When calling remote functions (AJAX), I can test for :success and
:failure. But how do I return a :success or :failure to my AJAX function
call from my action?

Thanks
Joerg

In your controller
render :nothing, :status=>200 # calls success
render :nothing ,:status=>500 #calls failure ,any status other than 2XX

Ah awesome - thanks.