On 21/02/13 9:10 PM, Steven Ringo wrote:
What about using Post.order(:created_at) and then working it from there?

Also you get the database to do the sorting for you, which is way more
efficient than having Ruby do it :-)

Because it doesn't do what we want, which is to show the most recently active post -- including comments on that post.

A.


--
Alex "Skud" Bayley
[email protected]
http://growstuff.org/
For personal stuff, please use [email protected]

--
You received this message because you are subscribed to the Google Groups "Ruby or 
Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rails-oceania?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to