• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Paginating with couchrest_model

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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?
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic