Need an example code like this forum :)

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?

soichi

On Aug 25, 2012, at 5:55 AM, Soichi I. 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

On Sat, Aug 25, 2012 at 10:25 AM, Walter Lee D. [email protected]
wrote:

Is there any example like that?

Uh, maybe
@posts = Post.order(‘added_at DESC’)
Did you even think about this at all?

No, because it’s created_at most of the time, or based on his question
updated_at.

Hi, Walter

what kind of study would that be? As you can see the answers might not
be
what you might have expected. Lack of explanation on your part is to
blame,
IMO. You asked for someone you to provide a site basically because you
asked it with 3 sentences… you can realize why that wasn’t
appreciated.

You can look up rails gems related to “forum”, maybe that will yield
something. Otherwise, you got to be far more specific.

2012/8/25 Jordon B. [email protected]


You received this message because you are subscribed to the Google G.
“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.


Pagarbiai,
Gintautas

I’m not the OP here, I was answering (well, trying to answer) not ask.

Walter