[Rails] Paginate do a Count(*) request before, how access that count value.

Thibaut Barrère thibaut.barrere at gmail.com
Thu Dec 29 10:05:24 GMT 2005


Unless of course you need to query with conditions :)

On 29/12/05, Thibaut Barrère <thibaut.barrere at gmail.com> wrote:
>
> Hi Mathieu
>
> maybe you could use a cached counter value in the database, as shown in
> the rails-blog-in-15-minutes-video ? (a bit different from what you exactly
> describe, but less expensive as well)
>
> hope this helps
>
> Thibaut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20051229/23c9dcf2/attachment.html


More information about the Rails mailing list