views:

38

answers:

3

Hi everybody,

I'm looking for a tutorial or a piece of code that can leads me to create a page where we can find only 10 data rows per page and navigating with Ajax previous/next arrows and also page number (i.e.: < 1 2 3 ... 10 > ).

Thank you very much.

+2  A: 

A good place to start is Mislav's will-paginate plugin. The Readme at that link should explain how to use it.

Edited:

There's also a screencast on RailsCasts about Ajax pagination. I haven't watched it, but his stuff is usually really high-quality and easy to follow.

Emily
A: 

Have you tried googling for "rails ajax pagination"? The first hit seems to be exactly what you're looking for:

EmFi
A: 

it's not ajax but maybe it's useful for you... when you use haml and haml_scaffolding in rails it's authomatic the pagination using this kind of sacffolding

forellana