Re: [Rails] Need an example code like this forum :)
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home