Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (6 sloc) 0.361 kb
# Article.find(:all, :order => "published_at desc", :limit => 10)
Article.order("published_at desc").limit(10)
# Article.find(:all, :conditions => ["published_at <= ?", Time.now], :include => :comments)
Article.where("published_at <= ?", Time.now).includes(:comments)
# Article.find(:first, :order => "published_at desc")
Article.order("published_at").last
Jump to Line
Something went wrong with that request. Please try again.