scoped_search is a simple Rails plugin that will make it easy to search your ActiveRecord models. Searching is performed using a query string, which should be passed to the named_scope search_for that uses SQL LIKE conditions for searching (ILIKE for Postgres). You can specify what fields should be used for searching.
The recommended method to enable scoped_search in your project is adding the scoped_search gem to your environment. Add the following code to your Rails configuration in
Rails::Initializer.run do |config| ... config.gem 'scoped_search' end
rake gems:install to install the gem.
Deprecated: alternatively, install scoped_search as a Rails plugin:
script/plugin install git://github.com/wvanbergen/scoped_search.git
This plugin is released under the MIT license.
Last edited by abenari,