From ezmobius at gmail.com Fri Jun 2 21:35:13 2006 From: ezmobius at gmail.com (Ezra Zygmuntowicz) Date: Fri, 2 Jun 2006 18:35:13 -0700 Subject: [Ez-where-devel] Hello? Is this thing on? Message-ID: <7CE8919E-F23B-4BA4-821F-4A2FAB735568@gmail.com> Anyone else listening? -Ezra From damien at new-bamboo.co.uk Sat Jun 3 06:38:05 2006 From: damien at new-bamboo.co.uk (Damien Tanner) Date: Sat, 3 Jun 2006 11:38:05 +0100 Subject: [Ez-where-devel] Hello? Is this thing on? In-Reply-To: <7CE8919E-F23B-4BA4-821F-4A2FAB735568@gmail.com> References: <7CE8919E-F23B-4BA4-821F-4A2FAB735568@gmail.com> Message-ID: <3BDF4934-743D-4637-B054-44106FCF6250@new-bamboo.co.uk> Did I hear something? Damien. On 3 Jun 2006, at 02:35, Ezra Zygmuntowicz wrote: > > Anyone else listening? > > -Ezra > _______________________________________________ > Ez-where-devel mailing list > Ez-where-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/ez-where-devel From craigwhite at azapple.com Sat Jun 3 13:27:46 2006 From: craigwhite at azapple.com (Craig White) Date: Sat, 03 Jun 2006 10:27:46 -0700 Subject: [Ez-where-devel] ez_where commands in a module finding a NULL Message-ID: <1149355666.972.25.camel@lin-workstation.azapple.com> this has had me going around and around (I just updated to latest svn version 4?) Briefly, my 'private' controller code looks like this... cond = Caboose::EZ::Condition.new do facility == fi_facility unless fi_facility == nil id == fi_personnel_id unless fi_personnel_id == nil # # this is the problem child # # "term_date IS nil" end end when in quotes, it is ignored. without quotes, previous version generated error... latest version, it is simply ignored How do I search a column that is null in this fashion? Craig From craigwhite at azapple.com Mon Jun 5 11:20:16 2006 From: craigwhite at azapple.com (Craig White) Date: Mon, 05 Jun 2006 08:20:16 -0700 Subject: [Ez-where-devel] ez_where commands in a module finding a NULL In-Reply-To: <1149355666.972.25.camel@lin-workstation.azapple.com> References: <1149355666.972.25.camel@lin-workstation.azapple.com> Message-ID: <1149520816.4749.0.camel@lin-workstation.azapple.com> On Sat, 2006-06-03 at 10:27 -0700, Craig White wrote: > this has had me going around and around (I just updated to latest svn > version 4?) > > Briefly, my 'private' controller code looks like this... > > cond = Caboose::EZ::Condition.new do > facility == fi_facility unless fi_facility == nil > id == fi_personnel_id unless fi_personnel_id == nil > # > # this is the problem child > # > # "term_date IS nil" > end > end > > when in quotes, it is ignored. > > without quotes, previous version generated error... > > latest version, it is simply ignored > > How do I search a column that is null in this fashion? ---- still hoping for some suggestion on this - it still has me stumped. Does anyone read this list yet? Craig From craigwhite at azapple.com Sun Jun 25 20:06:17 2006 From: craigwhite at azapple.com (Craig White) Date: Sun, 25 Jun 2006 17:06:17 -0700 Subject: [Ez-where-devel] need a join here... Message-ID: <1151280377.19678.56.camel@lin-workstation.azapple.com> Code in my personnel.rb (model) def libr_activity_hours_this_anniversary_period per_id, pe_doh, pe_doh_anniversary cond = Caboose::EZ::Condition.new :table_name => 'libr_activities' do personnel_id == per_id activity_date <=> (pe_doh.. pe_doh_anniversary) end LibrActivity.sum(:lhours, :conditions => cond.to_sql) end :lhours is actually in library.rb model and library_id is indeed a column in libr_activity.rb (belongs_to :library) I need to sum the lhours column of libraries table I presume on a join above but I can't figure out how it is done. Craig