If I do this:
x = Client.select("DISTINCT(client_category)")
Then I get an array of relations. Instead, what I need is the entire
row (model instance attributes) for each of the returned relations.
What is the syntax to obtain the complete records?
I cannot find a discussion of the select method in the current AR API
(http://api.rubyonrails.org/classes/ActiveRecord/Base.html) and so I am
having some difficulty in turning this into something I can use.
--
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.