Skip to content

Commit

Permalink
Merge pull request sunspot#191 from carlosantoniodasilva/patch-1
Browse files Browse the repository at this point in the history
Update `order` => `order_by` calls in sunspot_rails Readme.
  • Loading branch information
nz committed Apr 12, 2012
2 parents f38c721 + 9ffce32 commit 78068a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sunspot_rails/README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand Down

0 comments on commit 78068a4

Please sign in to comment.