On Mar 16, 9:18 am, engamocap <[email protected]> wrote:

> I'd like this:
>
> A.each {
>   |elem|
>   Model.find(:all,:select => 'COD',:group => 'COD',:include
> => :table).map{|el| el.table.elem}.sort
>
> }

For a given attribute, some_record['foo'] gets you the attribute
value. You might also be interested in the send method.

Fred
>
> But there's a problem in this code. Can you help me? Can I write that?
> Thank you very much
--~--~---------~--~----~------------~-------~--~----~
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