Thanks...I can't walk without my crutch. You made my day.

Craig

On Tue, 2009-07-28 at 14:15 -0700, Rick wrote:
> Check out http://github.com/ezmobius/ez-where/tree/master.  Most
> recent change activity is Feb 2009 - Rails 2.2.  Looks to be the same
> Ezra and it might be a better place to start from.
> 
> On Jul 28, 3:39 pm, Craig White <craigwh...@azapple.com> wrote:
> > I am learning new, was comfortable with 1.2.x
> >
> > I always used Ezra's ez-where plugin for finds, especially complex finds
> > but I see it hasn't been updated since 2006 so I am real leery to start
> > with it now on a new project in rails 2.3.2
> >
> > What I want to do is rather complex and ez-where handled this for me
> > simply. I want to...
> >
> > @debtor = Debtortrans.find(:all,
> >   :conditions => ["trandate > ? and trandate < ? AND taxauthid = ?",
> >  @per1, @per2, "24"],
> >   :joins => 'LEFT JOIN debtortranstaxes ON
> >  debtortranstaxes.debtortransid=id')
> >
> > but I actually want
> >
> > trandate > ? AND trandate < ? AND (
> >   taxauthid = ?
> > or
> >   taxauthid = ?
> > or
> >   taxauthid = ?
> > or
> >   taxauthid = ? )
> >
> > Is there a modern plug-in for complex finds like this - ala ez-where or
> > how would I construct this in a single 'conditions' statement if I go
> > without plugin?
> >
> > Craig
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> > 
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to