← All projects

tooling · 2009

Simple Search

Search a model's fields until a real search engine is in place.

User.simple_search_query("foo")

Overview

A Rails plugin that queries chosen columns with find_by_sql and sanitizes the term. Meant as a stopgap, not a search engine. Calling User.simple_search_query("foo") returns matching records, with an optional order.

Stack

RubyRails

More from the quarry