Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Home

cthulhu edited this page · 2 revisions
Clone this wiki locally

Welcome to the cursor_on_will_paginate wiki!
Small plugin that allows you to avoid some problems with find :all ActiveRecord method.

Require:
will_paginate gem

Usage:


#Instead of Book.each {|book| puts book.inspect} #use Book.each_with_cursor {|book| puts book.inspect} #or Book.each_with_cursor(:per_page => 100) {|book| puts book.inspect}

Default per_page value is 1000 items.
Something went wrong with that request. Please try again.