Welcome Guest, Not a member yet? Register   Sign In
Activerecord - getting totalnumber of query when limit is used
#3

[eluser]WolfgangA[/eluser]
Thanks for the link to the pagination class.
However this does not adress the issue i have.
My problem is: I need to get the total number of rows that match a (complex)query as well as only the resultset when using the 'limit' option.
The only way i see so far is to do 2 queries, which i would like to avoid.

Wolfgang


Messages In This Thread
Activerecord - getting totalnumber of query when limit is used - by El Forum - 08-08-2007, 07:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB