wood burning stoves
The moose likes Ruby and the fly likes Paginating with couchrest_model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Paginating with couchrest_model" Watch "Paginating with couchrest_model" New topic

Paginating with couchrest_model

Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57

In my rails application, I am using couchrest_model to connect to a couchDB database.

I have a model like this:

In the controller the function is simple:

And in the view I iterate the @authors to show the results.

I would like to implement pagination but I don't know how. I already implemented pagination before, when I was using a PostgreSQL database and active records (will_paginate), but now, I am stuck with this.

Anyone can help me with a simple example?
I agree. Here's the link: http://aspose.com/file-tools
subject: Paginating with couchrest_model
It's not a secret anymore!