#RubyOnRails - 01 August 2016
« Back 1 day
[01:11:36] adavia: i get this error "column "messages.created_at" must appear in the GROUP BY clause or be used in an aggregate function" in this query https://gist.github.com/adavia/599b1cbac1112618ecddff1de4b024bf
[01:26:35] beingjohnm: adavia: I mean that your first record is going to be record 1. The next record is 2. So they aleady are sorted by their creation.
[01:28:13] adavia: beingjohnm: you meant conversations. But in this case i want to sort conversations by their last message
[01:30:33] beingjohnm: adavia: I meant records. Regardless this seems to address your exact issue: TMBA339: Can You Invest in Property if You Don’t Have Much Money?
[01:31:43] beingjohnm: http://stackoverflow.com/questions/19865208/rails-query-join-order-by-group-by-issue
[01:51:09] amperry: hi all, got a problem with cocoon and forms for nested models here: https://gist.github.com/amp108/e8f8093a806ba3925513db55307c9ee0