# Will\_paginte and ajax

**URL:** <https://www.ruby-forum.com/t/will-paginte-and-ajax/135455>\
**Category:** Rails\
**Created:** [April 22, 2008, 11:26am UTC](https://www.ruby-forum.com/t/will-paginte-and-ajax/135455 "2008-04-22T11:26:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [April 22, 2008, 11:26am UTC](https://www.ruby-forum.com/t/will-paginte-and-ajax/135455/1 "2008-04-22T11:26:23Z")

</div>

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
