I am using rails 3.2. I am paginating my results using .page(1).per_page(10)
like
@users = User.method().page(1).per_page(10)
Now how to find the total count of the users from the pagination
As because @users.count
gives 10 from the first page and not the total count
How to get the total count of the users even after pagination
EDIT : @users.total_count
gives the whole paginated count