if you need an ajax friendly paginator, I’d suggest using the will_paginate plugin (
http://errtheblog.com/post/4791) and then apply the following patch:
you can then paginate your collection of objects as follows:
<%= will_paginate @products, :ajax_method => ‘my_ajax_callback’ %>
and of course you’d replace @products and ‘my_ajax_callback’ with the name of your objects and ajax pagination method.