Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
fixing order search clause in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb committed Aug 17, 2011
1 parent c873aac commit d828479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -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) @articles = Article.search.where(:released_at => 2.years.ago..Time.now)


# order based on sortable fields, sorting defaults to most relevant # 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. Simply iterate through the returned set to display the results.


Expand Down

0 comments on commit d828479

Please sign in to comment.