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 -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Sat, Aug 25, 2012 at 10:25 AM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> 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. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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 Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Sat, Aug 25, 2012 at 10:25 AM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> > 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. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Pagarbiai, Gintautas -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
I''m not the OP here, I was answering (well, trying to answer) not ask. Walter On Aug 26, 2012, at 5:59 AM, Gintautas Šimkus wrote:> 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 Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > On Sat, Aug 25, 2012 at 10:25 AM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> 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. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > Pagarbiai, > Gintautas > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.