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.2.1
Authors

Willem van Bergen, Wes Hays

39,584 total downloads 2,999 for this version
Owners

6053d8e7518ed101dbbd41dd4c1cc2ae393cc8351ec666c5e8e2918039e4464a60379725ee75e02e465638407bc8bec2

Gemfile
gem "scoped_search", "~> 2.2.1"
Versions
  1. 2.5.1 April 2, 2013
  2. 2.5.0 March 29, 2013
  3. 2.4.1 March 6, 2013
  4. 2.4.0 September 11, 2012
  5. 2.3.7 April 29, 2012
Show all versions (14 total)
Runtime Dependencies
  1. activerecord >= 2.1.0
Development Dependencies
  1. rspec ~> 2.0