Re: Record.count(''whatever = whatever'') will be deprecated in Rails 2.0

Rick Olson
Sat, 20 Jan 2007 20:48:31 -0000

On 1/20/07, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
> Ruboids:
>
> Excuse the newbescence, but "count" is impossible to Google for.
(Darn these
> clear and expressive interfaces!)
>
> The deprecation warning says something about count(column_name, options).
So
> what''s the simplest translation from
Record.count(''whatever = whatever'') to
> a .count() in ... whatever notation?

count :all, :conditions => ...


--
Rick Olson