On Jun 18, 11:21 pm, evandrake <[email protected]> wrote: > > def self.search(search) > if search > find(:all, :conditions => ['name OR address OR city LIKE ?', "%# > {search}%"]) > else > find(:all) > end > end > > However, when I do this, it only returns results from the city column.
your conditions need to end up like "name like 'foo' or address like 'foo' or city like 'foo;" Fred > > How can I get my find method to display results for all of these > conditions? --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---

