dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
mbj has quit [Ping timeout: 245 seconds]
xargoon has quit [Read error: Operation timed out]
xargoon has joined #datamapper
_br_ has quit [Read error: Operation timed out]
_br_ has joined #datamapper
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
mouse-_ has quit [Ping timeout: 245 seconds]
zombor has quit [Remote host closed the connection]
zombor has quit [Remote host closed the connection]
strange_nickname has joined #datamapper
<strange_nickname>
Greetings gentlemen! I have a question about datamapper, and I figured this might be the place.
<strange_nickname>
I've got a model A that contains a model B, and a "count" variable. I want to have a list with the sums of the counts, ordered by B.
<strange_nickname>
I can do A.aggregate(:b_id, :count.sum) to get that list with id's, but what if I want to join in name from the B table to get a list with human friendly names without doing more queries?
strange_nickname has quit [Ping timeout: 250 seconds]