title: Ajax callbacks not working with Rails 3.0.5 and jQuery 1.5.1
body: <p>I've got ajax pagination working with the <a href="https://github.com/amatsuda/kaminari" rel="nofollow noreferrer">Kaminari gem</a> on my website but I'm having difficulty getting ajax callbacks working</p>
  <p>I'm using jquery-1.5.1, rails 3.0.5 and I have the latest rails.js file</p>
  <p>My <code>podcasts.html.haml</code> looks as follows</p>
  <pre><code>#paginator
    = paginate @podcasts, :remote =&gt; true
  
  #podcasts
    = render @podcasts
  </code></pre>
  <p>My index.js.erb file looks like this:</p>
  <pre><code>$('#podcasts').html('&lt;%= escape_javascript render(@podcasts) %&gt;');
  $('#paginator').html('&lt;%= escape_javascript(paginate(@podcasts, :remote =&gt; true).to_s) %&gt;');
  </code></pre>
  <p>The pagination side of things works fine, and the pages do indeed load via ajax but I want to do some ajax callbacks and I just can't figure out how to get this working.</p>
  <p>I've tried adding numerous variations of the following code to my application.js file but with no success at all:</p>
  <pre><code>$('#paginator a').bind('ajax:success', function(data, status, xhr) {alert(&quot;success!&quot;);})
  </code></pre>
  <p>I would expect the code above to fire off an alert once the ajax stuff has finished. Nothing is happening though.</p>
  <p>Anyone got any ideas?</p>
  <h2>PS</h2>
  <p>The paginate method above, is from the <a href="https://github.com/amatsuda/kaminari" rel="nofollow noreferrer">Kaminari gem</a> and it creates the following html:</p>
  <pre><code>&lt;div id=&quot;paginator&quot;&gt;
    &lt;nav class=&quot;pagination&quot;&gt;
      &lt;a href=&quot;/podcasts&quot; data-remote=&quot;true&quot;&gt;Page 1&lt;/a&gt;
      &lt;a href=&quot;/podcasts?page=2&quot; data-remote=&quot;true&quot;&gt;Page 2&lt;/a&gt;
      &lt;a href=&quot;/podcasts?page=3&quot; data-remote=&quot;true&quot;&gt;Page 3&lt;/a&gt;
    &lt;/nav&gt;
  &lt;/div&gt;
  </code></pre>