Skip to content
Browse files

Merge pull request #191 from carlosantoniodasilva/patch-1

Update `order` => `order_by` calls in sunspot_rails Readme.
  • Loading branch information...
2 parents f38c721 + 9ffce32 commit 78068a431160557e8771d675eb885ba46048b9b9 @nz nz committed Apr 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sunspot_rails/README.rdoc
View
4 sunspot_rails/README.rdoc
@@ -143,7 +143,7 @@ Do it like this:
Post.search do
with :blog_id, 1
with(:updated_at).greater_than(Time.now - 2.weeks)
- order :sort_title, :asc
+ order_by :sort_title, :asc
paginate :page => 1, :per_page => 15
end
@@ -168,7 +168,7 @@ be added, so just use the interface provided by Sunspot:
Sunspot.search(Post, Comment) do
with :blog_id, 1
- order :created_at, :asc
+ order_by :created_at, :asc
end
Be sure to check out the Sunspot documentation for all the details.

0 comments on commit 78068a4

Please sign in to comment.
Something went wrong with that request. Please try again.