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
Authors

Amos Benari, Willem van Bergen, Wes Hays

150,036 total downloads 35,464 for this version
Owners

6053d8e7518ed101dbbd41dd4c1cc2ae393cc8351ec666c5e8e2918039e4464aFf01b1443724a0ae730a4ab2ca15e198

Gemfile
gem 'scoped_search', '~> 2.7.1'
Versions
  1. 2.7.1 March 23, 2014 (45.5 KB)
  2. 2.7.0 March 22, 2014 (45.5 KB)
  3. 2.6.5 March 10, 2014 (44.5 KB)
  4. 2.6.4 March 2, 2014 (44.5 KB)
  5. 2.6.3 February 12, 2014 (44.5 KB)
Show all versions (22 total)
Runtime Dependencies
  1. activerecord >= 2.1.0
Ruby Dependency
  1. >= 0
Development Dependencies
  1. rake >= 0
  2. rspec ~> 2.0