Created
January 24, 2011 11:21
-
-
Save guimello/793098 to your computer and use it in GitHub Desktop.
Using will_paginate on non AR objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= will_paginate WillPaginate::Collection.create(@objects.page, @objects.per_page, @objects.total_results) {|p| p.replace @objects} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment