couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karel Minařík <karel.mina...@gmail.com>
Subject WillPaginate compatible pagination for CouchPotato views (Ruby)
Date Thu, 29 Jul 2010 14:01:05 GMT
Hi,

I've recently needed will_paginate [http://github.com/mislav/will_paginate/ 
] pagination for CouchPotato [http://github.com/langalex/couch_potato]  
views.

You can get the WillPaginate adapter from the following Gist:

--> http://gist.github.com/498177

Tests are included in-file. Note that it uses the non-recommended,  
"slow" method of pagination as described in the relax book (http://books.couchdb.org/relax/reference/recipes#Pagination

). Feedback is appreciated.

Karel

--
www.karmi.cz

Mime
View raw message