=?", Date. Today - 7). Select("story_id, COUNT(*) as t..." />
I think I figured out a much better way. Most_commented_comments = Comment. Where("created_at >=?", Date.
Today - 7). Select("story_id, COUNT(*) as total"). Group("story_id").
Order("2 DESC"). Limit(limit).
1. I think you want 7. Days, 7 will mean 7 seconds?
Or microseconds? :) Or you can do 1. Week 2.
What does 2 DESC mean? – John Bachir Oct 31 at 22:05 2 desc means ordering on the second column descending. – nathanvda Oct 31 at 22:39 7 appears to be working without the .
Days but I may add it just in case that stops working in the future. – Pygmalion Nov 1 at 1:32.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.