Frederick Cheung wrote:
> On 11 Dec 2008, at 16:05, Joe Peck wrote:
> 
>> something like Blah.find(:all, :conditions => blah blah).size
>>
> Blah.count(:all, :conditions => ...)
> 
> or if you had a named_scope for that set of conditions,
> Blah.some_scope.count
> 
> Fred

Beautiful.  Thanks Fred, you seem to answer a lot of questions on this 
board.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to