No commit activity in last 3 years
No release in over 3 years
Quick and dirty multi column LIKE searches.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Multi Column Search Plugin¶ ↑

# Currently requires Rails 3 Active Record or above

v 0.0.2

Quick and dirty multi column LIKE searches. Need to search accross multiple columns, like company(name, address, city, state, zip)

Running lots of queries or have a large data set? You should probably upgrade to a real search back-end already!

Install as plugin¶ ↑

rails plugin install git://github.com/jackhq/multi_column_search.git

Examples¶ ↑

Add a search method to your model by calling multi_column_search with the fields you want to search.

class Company
  multi_column_search :name, :address, :city, :state, :zip
end

Search for a single or multi value across all searched columns.

Company.search('Sam Comp')             # => any company with name, address, city, state, zip containing with Sam Comp

Install¶ ↑

Rails 3 Gem

# add to your gemfile in bundler
bundle install

Docs¶ ↑

rdoc.info/projects/jackhq/multi_column_search

Homepage

github.com/jackhq/multi_column_search

License

Copyright © 2010 Jack Russell Software Company <team@jackrussellsoftware.com>, released under the MIT license.

Credits¶ ↑

Completely inspired from “simple_column_search” by Elijah Miller : github.com/jqr/simple_column_search