This seems to work perfectly for me. Thanks for your help. I will take
On 8 sep, 15:42, Tony Primerano <
tony.primer...@gmail.com> wrote:
> I'm not sure how to do the "COUNT(widget_type_id) AS widgettypeid" as
> this doesn't seem to work below but it is close. hoping someone will
> chime in. :-) I'm sure I'm missing something simple.
>
> Widget.group(:widget_type_id).select('widget_type_id,
> count(widget_type_id) AS widgettypeid').order(:widgettypeid).limit(10)
>