MySQL Forums
Forum List  »  Ruby

Entering a variable in a FIND
Posted by: Ruth O'Hare
Date: January 22, 2006 02:45PM

So here's my problem

def self.search_results(title_search)
find(:all,
:conditions => "title like '%B%'",
:order => "title")
end

The find works as above, but how do I get it to use title_search instead?

I'm sure it's super basic stuff but I'm stuck.

Options: ReplyQuote


Subject
Written By
Posted
Entering a variable in a FIND
January 22, 2006 02:45PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.