As mentioned in the question, you can get the total count of the records with
@users.total_count
I’ve added this as an answer for the sake of completeness.
As mentioned in the question, you can get the total count of the records with
@users.total_count
I’ve added this as an answer for the sake of completeness.