If x equal 200 then I want the find to check that y is equal to 300 but if x is not equal to 200 there should be no check with y
-----Original Message----- From: rubyonrails-talk@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ar Chron Sent: Wednesday, December 10, 2008 4:14 AM To: rubyonrails-talk@googlegroups.com Subject: [Rails] Re: Active record :find having an if statement inside the conditions Or is it just: :conditions => ["(x = ? and y = ?)", 200, 300] i.e., do you want the items where x != 200 or not? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---