RubyGems.org

Scoped search makes it easy to search your ActiveRecord-based models. It will create a named scope :search_for that can be called with a query string. It will build an SQL query using the provided query string and a definition that specifies on what fields to search. Because the functionality is built on named_scope, the result of the search_for call can be used like any other named_scope, so it can be chained with another scope or combined with will_paginate. Because it uses standard SQL, it does not require any setup, indexers or daemons. This makes scoped_search suitable to quickly add basic search functionality to your application with little hassle. On the other hand, it may not be the best choice if it is going to be used on very large datasets or by a large user base.

installgem install scoped_search -v 2.3.6
Authors

Willem van Bergen, Wes Hays

13,221 total downloads 2,898 for this version
Owners

6053d8e7518ed101dbbd41dd4c1cc2ae393cc8351ec666c5e8e2918039e4464a60379725ee75e02e465638407bc8bec2

Gemfile
gem "scoped_search", "~> 2.3.6"
Versions
  1. 2.3.6 November 12, 2011
Show all versions (10 total)
Runtime Dependencies
  1. activerecord >= 2.1.0
Development Dependencies
  1. rspec ~> 2.0
  2. sqlite3-ruby >= 0