Permalink
Browse files

fixing order search clause in readme

  • Loading branch information...
1 parent c873aac commit d828479ce2d373cafbdbd07439bca66e302948c6 @ryanb committed Aug 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.rdoc
View
@@ -67,7 +67,7 @@ Use the +search+ class method to perform a full text search on the index. This r
@articles = Article.search.where(:released_at => 2.years.ago..Time.now)
# order based on sortable fields, sorting defaults to most relevant
- @articles = Article.search("phone").order(:created_at, :descending => true)
+ @articles = Article.search("phone").order(:created_at, :desc)
Simply iterate through the returned set to display the results.

0 comments on commit d828479

Please sign in to comment.