class Asset < ActiveRecord::Base belongs_to :account belongs_to :asset_type ...
Ruby Advanced search form & ...
by Erez Ben Shoham,
March 16, 2009 11:33,
3 refactorings, tagged with search, form, model, named_scope
def self.paged_search(query, from, category, locality, page, per_page = 10)
query_str = []
query_prms = []
...
Ruby Ferret, pagination and mult...
by jboss,
July 17, 2008 07:34,
No refactoring, tagged with rails, search, find, join, ferret, paginate
This code has multiple flaw...
def construct_search_query
query = '*'
query << 'AND (' << params[:search_all] << ')' if params[:search_all] && params[:search_all].length > 3
...
Ruby Constructing a search query
I want to construct a searc...
class SearchLet(Form):
district = Field(widget=SelectMultiple(choices=DISTRICTS, required=False)
...
Python Django models search
I'm using the following cod...
I have an Asset model in a ...