Will Datamapper allow me to select columns from joined tables, a la
ActiveRecord:

people = Person.find(:all, :select => 'people.id, people.name,
account.name as account_name', :include => [ :account ])
people.each do |person|
  puts person.name + " belongs to the " + person.account_name + "
account"
end


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to