Skip to content


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.

will_paginate gem


#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.