Skip to content
Browse files

scope sample added

  • Loading branch information...
1 parent a82c673 commit a7b97bf63643ac6ced41f451537a2690e3f6eee8 @pka pka committed May 8, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 README
View
5 README
@@ -33,3 +33,8 @@ For Postgres 8.2 and older follow http://code.google.com/p/acts-as-tsearch/wiki/
puts blog_entries.size
puts blog_entries[0].title
...etc...
+
+or using scopes:
+
+ blog_entry = BlogEntry.scoped_by_tsearch("bob").find(:first)
+

0 comments on commit a7b97bf

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