Frederick Cheung wrote: > In this case you're only (at least what you've shown) using the number > of people of the various types, so you could do something like > > User.male.count :group => 'ethnicity' > (assuming you had a male named scope doing the obvious) which will get > you the counts by ethnicity > > Fred
Thanks. I will give that a try. -- 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 -~----------~----~----~----~------~----~------~--~---

