Maybe you don't know about the limit clause?

order by sometimestamp desc limit 3

And at least in Rails 3, limit is explicitly supported so you don't have to 
drop to SQL to do this.

On Feb 6, 2012, at 11:54 AM, Christopher Jones wrote:

> I want to on the front page of the website display the 3 most recently
> uploaded games. I imagine I would do this by extracting the three games
> with the most recent timestamp?


-- 
Scott Ribe
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice




-- 
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 this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to