Skip to content

Instantly share code, notes, and snippets.

@javier
Created February 15, 2011 10:21
Show Gist options
  • Save javier/827358 to your computer and use it in GitHub Desktop.
Save javier/827358 to your computer and use it in GitHub Desktop.
kaminari ultrasphinx
#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
@javier
Copy link
Author

javier commented Jun 12, 2011

you are right.. but when I was trying kaminari, it was right out of the oven and I needed the patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment