title: Rails jQuery UJS callbacks not triggering
body: <p>I'm attempting to trigger the ajax:success callback for a remote link. I'm on Rails 3.0.8 and jquery-rails 1.0.11. I ran the jquery generator to install the javascripts. Both jquery and jquery_ujs are included in my defaults and I can verify they are being included on the page.</p>
  
  <p>Here's my javascript:</p>
  
  <pre><code>jQuery(function($) {
    $("#deactivate")
      .bind("ajax:success", function() {
        alert("HELLO");
      })
      .bind("ajax:error", function() {
        alert("GOODBYE");
      }
    );
  });
  </code></pre>
  
  <p>The link:</p>
  
  <pre><code>= link_to 'Deactivate', activate_patient_path(patient), :id =&gt; 'deactivate', :class =&gt; "button button-red", :remote =&gt; true
  </code></pre>
  
  <p>The activate action:</p>
  
  <pre><code>def activate
      patient = Patient.find(params[:id])
      patient.do_not_call = !patient.do_not_call
      if patient.save
        render :nothing =&gt; true
      else
        render :status =&gt; 500, :nothing =&gt; true
      end
  end
  </code></pre>
  
  <p>The ajax call seems to be working fine. The action is triggered and I can see the changes in the database. However, the ajax callbacks are not being triggered. I can't get any of them to work. I can get other events, such as click, to work perfectly.</p>
  
  <p>If I debug rails_ujs in Firebug I see that the following code gets ran from the Rails ajax block:</p>
  
  <pre><code>success: function(data, status, xhr) {
    element.trigger('ajax:success', [data, status, xhr]);
  }
  </code></pre>
  
  <p>I'm stumped. Any ideas?</p>