On Aug 25, 2012, at 5:55 AM, Soichi Ishida wrote:

> I am looking for a code example that sets up something like this forum.
> You are well aware of how it works; last updated posts show up at the
> top and so on.
> 
> and it is a commonly used algorithm so I don't want to invent the wheel.
> I rather read the code somebody wrote for my study.
> 
> Is there any example like that?

Uh, maybe

        @posts = Post.order('added_at DESC')

Did you even think about this at all?

Walter

-- 
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 https://groups.google.com/groups/opt_out.


Reply via email to