On 18 January 2011 16:47, James Byrne <li...@ruby-forum.com> wrote:
> Colin Law wrote in post #975760:
>
>> I am interested to know why, when you do not care what the rest of the
>> row contains.
>>
>
> I have answered that question. I just want to quickly obtain one
> representative row from each category.  I can get the same result by
> iterating over an array of possible values and doing a
> find_by_category(x).first on each.  I would prefer a less cumbersome
> approach.
>
> Do you know how to accomplish what I desire?  If so then I would
> appreciate it if you would tell me.

No I do not.  I was hoping that if I understood in detail why you want
this that I could suggest an alternative approach.  I still do not
understand why you might want one representative row from each
category when you do not care what the rest of the row contains.

Colin

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to