[Rails] Re: Need syntax help for the conditions argument in the find (ie Active Record) method

2010-08-04 Thread ct9a
hi, Frederick, I was hoping to be able to mix hash and array conditions. After all, in an array , we could have hash element conditions. Anyway, your feedback along with my trials on the console further confirms that it cannot be done. I have fixed the problem in another manner (ie. use a cla

[Rails] Re: Need syntax help for the conditions argument in the find (ie Active Record) method

2010-08-04 Thread Frederick Cheung
On Aug 4, 1:08 pm, ct9a wrote: > hi guys > >  in relation to the "find" method in Active Record, can anyone tell me > how to write the syntax for the following? > > 1) entries created within the past 2 hours, AND > 2) entries that do not have a status of "Sold" > > at the moment,  i have the fol