Created
February 15, 2011 10:21
-
-
Save javier/827358 to your computer and use it in GitHub Desktop.
kaminari ultrasphinx
This file contains 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
#kaminari uses different method names than will:paginate, but with a small add-on | |
#we can use it for paginating thinking sphinx results | |
ThinkingSphinx::Search.class_eval do | |
def num_pages | |
total_pages | |
end | |
def limit_value | |
per_page | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you are right.. but when I was trying kaminari, it was right out of the oven and I needed the patch