searchlogic
searchlogic copied to clipboard
Searchlogic provides object based searching, common named scopes, and other useful tools.
For some reason, when I try to do an _is(#) or _equals(#) or _eq(#), I always get an error about there being the wrong number of arguments. Table: Workflow(id: integer,...
This is not handled by ActiveRecord named scopes, so I borrowed some code from ActiveRecord::Base.attribute_condition to make it work. Here is the patch: more 0001-Added-support-for-ranges-and-arrays-when-using-does_.patch From 33330f47c4d75c9b03331b04583b9f74898044cc Mon Sep 17...
Under the combining scopes with OR section it has this line User.id_or_age_lt_or_username_or_first_name_begins_with(10) => "id < 10 OR age < 10 OR username LIKE 'ben%' OR first_name like'ben%'" Where does ben...
your site is down, just pinging you.
my rails have strange behavior if I use order helper. my controller: def index @search = User.search(params[:search]) @users = @search.paginate(:page => params[:page], :per_page => 40) end 1. Scenario 1: multiple...
Let's say I've got a list of events. I want to find out which events were active at a certain date. So I run: ``` Event.start_date_lte('2010-01-01').end_date_gte('2010-01-01') ``` And everything works...
``` Class Message < ActiveRecord::Base has_many :addresses, :class_name => "MessageAddress" named_scope :system, :joins => 'LEFT JOIN message_addresses ON message_addresses.message_id = messages.id', :conditions => 'message_addresses.id IS NULL' end Class MessageAddress <...
Bug or just fundamental incompatibility w/rails default_scope? If I declare a default_scope on my model, none of the rails_helpers for click-sort column headings will work. The search object is built...
Using searchlogic 2.4.2 Given a class class A < ActiveRecord::Base belongs_to :b end where b has attributes firstname and lastname A.b_firstname_is_or_b_lastname_like('abc') throws the error "Searchlogic::NamedScopes::OrConditions::UnknownConditionError: The condition 'b_firstname_is' is not...