Ajax and pagination

Hi,

all, I am using rjs and pagination and I have given links for pagination
as

<%if @photo_pages.current.previous%>
<%= link_to_remote (“previous”,
:url=>{:action=>params[:redirect_action], :page
=>@photo_pages.current.previous,:redirect_action=>params[:redirect_action],:id=>params[:id]})%>
<%end%>

<%if @photo_pages.current.next%>
<%= link_to_remote (“next”, :url=>{:action=>params[:redirect_action],
:page =>
@photo_pages.current.next,:redirect_action=>params[:redirect_action],:id=>params[:id]})%>
<%end%>

              I want to use normal pagination that is displayed like

1…n pages and should hide appropriate page numbers from page number
list.

               Is there any way to do this????. please reply

Regards,
Kiran

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs