In my action I wish to only respond with processing if it was called from an AJAX request. How do I check?
I want to do something like this:
def acti
If you're using :remote => true in your links or forms, you'd do:
:remote => true
respond_to do |format| format.js { #Do some stuff }
You can also check before the respond_to block by calling request.xhr?.
request.xhr?