> If I understand correctly, then in the case where there are several
> records with given == "fred" for example, then you want to get a Name
> object back so you can access the other attributes.  But how will the
> code know which of the records with given == "fred" that you want?
> The other attributes may be different between the fred records.

Ah - yes, that's right you've understood.
Hmmm - you've got me thinking differently about this now.
I think the thing I was trying to do is not what I actually should do!

Thanks for the reply, I'm thinking now I'll return just the unique names 
and the gender of, I think that'll serve my purpose.

-- 
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