From: Ruby Geo Date: 2007-12-20T00:45:47+09:00 Subject: Re: Metho Error yermej wrote: > On Dec 19, 7:55 am, Ruby Geo wrote: >> Why do I get the folowing error when I run this method ? ? >> >> wrong number of arguments (2 for 3) (ArgumentError) > > Seriously? Well, I'm going to go out on a limb and guess that you only > passed in two arguments instead of three. Or at least I think that's > what "wrong number of arguments (2 for 3)" would mean. well that's true I passed only two argument. But my question is How do I use that method in order to display this. Business.search_by_keyword([bsn0, bsn1, bsn2], [KEYWORDS[0],KEYWORDS[2] ],false) # true here mean 'partial match' # will return bsn0 AND bsn1 -- Posted via http://www.ruby-forum.com/.