Same here why used condition if @users.count > 0  for pagination show. No need it's If no result more than page count it's not show pagination