Will_paginte and ajax

Hi
Till now we have used the rails pagination and made it ajax
successfully like following in view for both Previous and Next links
(the other pages in between not possible)

<%= link_to_remote(‘Previous’, {:url => {:action =>
:show_ci_attachment_page, :ci => @ci.id, :content => ‘show’, :page =>
@hardware_ci_attachments_pages.current.previous}}) if
@hardware_ci_attachments_pages.current.previous %>

Now we r using will_paginate .So how can we achieve the same as above
with will_paginate?

Please help
Sijo