From: Tom Ha Date: 2008-03-09T05:49:43+09:00 Subject: Re: Creating a search Thanks a lot for your help, Arlen! (Actually, the error "odd number list for Hash" still appears (for your line of code) but I just learned some very useful things. I think the problem is that I can't just write this code into the place where the conditions should appear. I tried putting this new code into an eval("...") statement, but it didn't change anything for the error. Well, I'll follow your advice and ask the other group, then.) > Instead, try something more functional: > params[:search].reject {|key, val| val.nil?}.map {|k, v| "#{k.inspect} => #{v.inspect}"}.join(", ") -- Posted via http://www.ruby-forum.com/.