Skip to content

Fix bug where page_entries_info does render correctly with a group by clause #207

wants to merge 2 commits into from

3 participants


When using ActiveRecordModel.paginate(:group => "my_group_field", :page => 1), the page_entries_info helper renders incorrectly: Displaying {1 => 2} models. This is because collection.size returns the size as a hash. The length of the hash is the value we want to show in the page_entries_info.

Brad Seefeld added some commits Dec 2, 2011
xadn commented Apr 12, 2012

This fixed the issue for me too, can we merge this in?

@mislav mislav added a commit that closed this pull request Jan 10, 2013
@mislav use `total_entries` in page_entries_info() consistently
Fixes #278, fixes #284, fixes #207
@mislav mislav closed this in 8738d80 Jan 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.